This commit is contained in:
hatim boufnichel 2024-04-24 20:01:05 +02:00
parent 341e962af3
commit 082181f385

View file

@ -24,6 +24,7 @@ export const setupNetwork = async () => {
await sendCoinsToAddresses(core, addresses)
console.log("done sending coins, opening channels")
await openChannels(instances, connectInfo, addresses)
await core.Mine(6)
console.log("done opening channels, sending balancing payment")
await sendBalancingPayment(instances)
stopAllInstances(instances)
@ -39,7 +40,7 @@ const openChannels = async (instances: LndInstances, info: InstancesInfo, addres
await instances.bob.OpenChannel(info.carol.pubkey, addresses.bob, 5_000_000, 0)
await instances.carol.OpenChannel(info.alice.pubkey, addresses.carol, 5_000_000, 0)
await instances.alice.OpenChannel(info.dave.pubkey, addresses.alice, 5_000_000, 0)
await core.Mine(6)
}
const sendCoinsToAddresses = async (core: BitcoinCoreWrapper, addresses: Addresses) => {