mirror of
https://github.com/comit-network/xmr-btc-swap.git
synced 2025-04-20 07:56:05 -04:00
better log messages
This commit is contained in:
parent
64fb090eea
commit
6f1a4e7fbe
@ -69,7 +69,7 @@ pub async fn cancel(
|
||||
let state = BobState::BtcCancelled(state6);
|
||||
db.insert_latest_state(swap_id, state.clone().into())
|
||||
.await?;
|
||||
tracing::info!("Cancel transaction has already been confirmed on chain.");
|
||||
tracing::info!("Cancel transaction has already been confirmed on chain");
|
||||
return Ok((tx.txid(), state));
|
||||
}
|
||||
if let ExpiredTimelocks::None { .. } =
|
||||
@ -137,7 +137,7 @@ pub async fn refund(
|
||||
db.insert_latest_state(swap_id, state.clone().into())
|
||||
.await?;
|
||||
|
||||
tracing::info!("Cannot refund because BTC is punished.");
|
||||
tracing::info!("Cannot refund because BTC punish timelock expired");
|
||||
return Ok(state);
|
||||
}
|
||||
bail!(error);
|
||||
|
Loading…
x
Reference in New Issue
Block a user