From 0ae91a4a683445f6745f8ab2bbe8a0c7cd030989 Mon Sep 17 00:00:00 2001 From: Einliterflasche Date: Wed, 10 Jul 2024 01:34:23 +0200 Subject: [PATCH] Added a logging message to notify users that BTC will be refunded to the internal wallet incase of a refund when they pass `--refund-to-internal-wallet` --- swap/src/cli/command.rs | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/swap/src/cli/command.rs b/swap/src/cli/command.rs index 7304364c..dba1b604 100644 --- a/swap/src/cli/command.rs +++ b/swap/src/cli/command.rs @@ -85,11 +85,18 @@ where let bitcoin_change_address = match bitcoin_change_address { Some(addr) => addr, None => { - context + let internal_wallet = context .bitcoin_wallet() .expect("bitcoin wallet should exist") .new_address() - .await? + .await?; + + tracing::info!( + internal_wallet=%internal_wallet, + "Found flag --refund-to-internal-wallet. Incase of a refund the bitcoin will be send to this internal wallet." + ); + + internal_wallet } };