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`
This commit is contained in:
Einliterflasche 2024-07-10 01:34:23 +02:00
parent b95b733e64
commit 0ae91a4a68

View File

@ -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
}
};