From cbef577e2d8e51238352864e7d5fac73ecde0824 Mon Sep 17 00:00:00 2001 From: Thomas Eizinger Date: Mon, 1 Mar 2021 11:24:27 +1100 Subject: [PATCH] Inform user that we are going to swap the remainder of the balance --- swap/src/bin/swap_cli.rs | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/swap/src/bin/swap_cli.rs b/swap/src/bin/swap_cli.rs index 75bf94fd..4304de94 100644 --- a/swap/src/bin/swap_cli.rs +++ b/swap/src/bin/swap_cli.rs @@ -117,12 +117,15 @@ async fn main() -> Result<()> { } debug!("Received {}", bitcoin_wallet.balance().await?); + } else { + debug!( + "Still got {} left in wallet, swapping ...", + bitcoin_wallet.balance().await? + ); } let send_bitcoin = bitcoin_wallet.max_giveable(TxLock::script_size()).await?; - info!("Swapping {} ...", send_bitcoin); - let bob_factory = Builder::new( seed, db,