Skip to content

Commit

Permalink
up
Browse files Browse the repository at this point in the history
  • Loading branch information
boufni95 committed Apr 25, 2024
1 parent fc804ca commit 0870ff6
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/tests/networkSetup.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ export const setupNetwork = async () => {
await core.InitAddress()
await core.Mine(1)
const lnd = new LND(settings.lndSettings, () => { }, () => { }, () => { }, () => { })
for (let i = 0; i < 10; i++) {
for (let i = 0; i < 30; i++) {
try {
const info = await lnd.GetInfo()
if (!info.syncedToChain) {
Expand All @@ -19,6 +19,9 @@ export const setupNetwork = async () => {
}
return
} catch (e) {
if (i % 5 === 0) {
await core.Mine(1)
}
console.log("waiting for lnd to be ready")
await new Promise(resolve => setTimeout(resolve, 1000))
}
Expand Down

0 comments on commit 0870ff6

Please sign in to comment.