Inform user that we are going to swap the remainder of the balance

This commit is contained in:
Thomas Eizinger 2021-03-01 11:24:27 +11:00
parent b7c3524b4f
commit cbef577e2d
No known key found for this signature in database
GPG Key ID: 651AC83A6C6C8B96

View File

@ -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,