From 9a89eb0e23f3e5db3520ce6f2ce498561e1ac1a2 Mon Sep 17 00:00:00 2001 From: hatim boufnichel Date: Wed, 24 Apr 2024 20:03:53 +0200 Subject: [PATCH] up --- src/tests/networkSetup.ts | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/src/tests/networkSetup.ts b/src/tests/networkSetup.ts index b67f9218..f6394773 100644 --- a/src/tests/networkSetup.ts +++ b/src/tests/networkSetup.ts @@ -23,6 +23,8 @@ export const setupNetwork = async () => { const addresses = await getAddresses(instances) await sendCoinsToAddresses(core, addresses) console.log("done sending coins, opening channels") + console.log(await getAllInfo(instances)) + console.log(await getAllBalances(instances)) await openChannels(instances, connectInfo, addresses) await core.Mine(6) console.log("done opening channels, sending balancing payment") @@ -68,6 +70,15 @@ const getAllInfo = async (instances: LndInstances) => { } +const getAllBalances = async (instances: LndInstances) => { + const aliceBal = await instances.alice.GetBalance() + const bobBal = await instances.bob.GetBalance() + const carolBal = await instances.carol.GetBalance() + const daveBal = await instances.dave.GetBalance() + return { aliceBal, bobBal, carolBal, daveBal } + +} + const getConnectInfo = async (instances: LndInstances) => { const { aliceInfo, bobInfo, carolInfo, daveInfo } = await getAllInfo(instances) const [alicePub, aliceHost] = aliceInfo.uris[0].split('@')