From 198455482d068d1e3f060a8a9f96f524a2153220 Mon Sep 17 00:00:00 2001 From: Philipp Hoenisch Date: Tue, 16 Jan 2024 19:47:28 +0100 Subject: [PATCH] chore: Fund XXL by sending 5 times to the coordinator's wallet we ensure that he has 5 utxos available. This comes handy because now we need on-chain funds to open channels and we might empty the wallet fast --- crates/fund/examples/fund.rs | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/crates/fund/examples/fund.rs b/crates/fund/examples/fund.rs index 40e826b6c..e87d3d43f 100644 --- a/crates/fund/examples/fund.rs +++ b/crates/fund/examples/fund.rs @@ -42,10 +42,13 @@ async fn fund_everything(faucet: &str, coordinator: &str) -> Result<()> { let bitcoind = bitcoind::Bitcoind::new(client, faucet.to_string() + "/bitcoin"); - bitcoind - .fund(&coord_addr, Amount::ONE_BTC) - .await - .context("Could not fund the faucet's on-chain wallet")?; + for _ in 0..5 { + bitcoind + .fund(&coord_addr, Amount::ONE_BTC) + .await + .context("Could not fund the faucet's on-chain wallet")?; + } + bitcoind.mine(10).await?; coordinator.sync_wallet().await?;