This commit is contained in:
hatim boufnichel 2024-04-24 20:50:56 +02:00
parent ab22757952
commit f2b18239a8

View file

@ -52,7 +52,7 @@ const openChannel = async (instance: LND, to: string, closeAddr: string) => {
try { try {
await instance.OpenChannel(to, closeAddr, 10_000_000, 0) await instance.OpenChannel(to, closeAddr, 10_000_000, 0)
console.log("success opening channel") console.log("success opening channel")
break return
} catch (e) { } catch (e) {
await new Promise((resolve) => setTimeout(resolve, 1000)) await new Promise((resolve) => setTimeout(resolve, 1000))
console.log("error opening channel", e) console.log("error opening channel", e)