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 82b70c2 commit 64717eb
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/tests/networkSetup.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@ import LND from '../services/lnd/lnd.js'
export const setupNetwork = async () => {

const settings = LoadTestSettingsFromEnv()
const core = new BitcoinCoreWrapper(settings)
await core.InitAddress()
await core.Mine(1)
//const core = new BitcoinCoreWrapper(settings)
//await core.InitAddress()
//await core.Mine(1)
const lnd = new LND(settings.lndSettings, () => { }, () => { }, () => { }, () => { })
for (let i = 0; i < 30; i++) {
try {
Expand All @@ -15,6 +15,7 @@ export const setupNetwork = async () => {
throw new Error("not synced to chain")
}
if (!info.syncedToGraph) {
await lnd.ConnectPeer({})
throw new Error("not synced to graph")
}
return
Expand Down

0 comments on commit 64717eb

Please sign in to comment.