mirror of
https://github.com/comit-network/xmr-btc-swap.git
synced 2024-12-24 06:59:36 -05:00
Log error message.
This commit is contained in:
parent
aebdb063f1
commit
68ae47edf4
@ -171,16 +171,30 @@ where
|
||||
let redeem_address = self.bitcoin_wallet.new_address().await;
|
||||
let punish_address = self.bitcoin_wallet.new_address().await;
|
||||
|
||||
let (tx_redeem_fee, tx_punish_fee, redeem_address, punish_address) = match (
|
||||
tx_redeem_fee,
|
||||
tx_punish_fee,
|
||||
let (redeem_address, punish_address) = match (
|
||||
redeem_address,
|
||||
punish_address,
|
||||
) {
|
||||
(Ok(tx_redeem_fee), Ok(tx_punish_fee), Ok(redeem_address), Ok(punish_address)) => {
|
||||
(tx_redeem_fee, tx_punish_fee, redeem_address, punish_address)
|
||||
(Ok(redeem_address), Ok(punish_address)) => {
|
||||
(redeem_address, punish_address)
|
||||
}
|
||||
_ => {
|
||||
tracing::error!("Could not get new address.");
|
||||
continue;
|
||||
}
|
||||
};
|
||||
|
||||
let (tx_redeem_fee, tx_punish_fee) = match (
|
||||
tx_redeem_fee,
|
||||
tx_punish_fee,
|
||||
) {
|
||||
(Ok(tx_redeem_fee), Ok(tx_punish_fee)) => {
|
||||
(tx_redeem_fee, tx_punish_fee)
|
||||
}
|
||||
_ => {
|
||||
tracing::error!("Could not calculate transaction fees.");
|
||||
continue;
|
||||
}
|
||||
_ => { continue; }
|
||||
};
|
||||
|
||||
let state0 = match State0::new(
|
||||
|
Loading…
Reference in New Issue
Block a user