mirror of
https://github.com/comit-network/xmr-btc-swap.git
synced 2025-04-20 07:56:05 -04:00
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:
parent
b95b733e64
commit
0ae91a4a68
@ -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
|
||||
}
|
||||
};
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user