up
This commit is contained in:
parent
c22fb17eb6
commit
c90338ed8a
1 changed files with 13 additions and 2 deletions
|
|
@ -20,11 +20,22 @@ export const setupNetwork = async () => {
|
||||||
await tryUntil<void>(async i => {
|
await tryUntil<void>(async i => {
|
||||||
const info = await alice.GetInfo()
|
const info = await alice.GetInfo()
|
||||||
if (!info.syncedToChain) {
|
if (!info.syncedToChain) {
|
||||||
throw new Error("not synced to chain")
|
throw new Error("alice not synced to chain")
|
||||||
}
|
}
|
||||||
if (!info.syncedToGraph) {
|
if (!info.syncedToGraph) {
|
||||||
//await lnd.ConnectPeer({})
|
//await lnd.ConnectPeer({})
|
||||||
throw new Error("not synced to graph")
|
throw new Error("alice not synced to graph")
|
||||||
|
}
|
||||||
|
}, 15, 2000)
|
||||||
|
|
||||||
|
await tryUntil<void>(async i => {
|
||||||
|
const info = await bob.GetInfo()
|
||||||
|
if (!info.syncedToChain) {
|
||||||
|
throw new Error("bob not synced to chain")
|
||||||
|
}
|
||||||
|
if (!info.syncedToGraph) {
|
||||||
|
//await lnd.ConnectPeer({})
|
||||||
|
throw new Error("bob not synced to graph")
|
||||||
}
|
}
|
||||||
}, 15, 2000)
|
}, 15, 2000)
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue