From d3ccd87c6ee63442cd523d06edf67d789c223df0 Mon Sep 17 00:00:00 2001 From: hatim boufnichel Date: Thu, 25 Apr 2024 19:49:27 +0200 Subject: [PATCH] up --- src/tests/networkSetup.ts | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/tests/networkSetup.ts b/src/tests/networkSetup.ts index f630ec79..b9ffbb82 100644 --- a/src/tests/networkSetup.ts +++ b/src/tests/networkSetup.ts @@ -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 { @@ -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