mirror of
https://github.com/comit-network/xmr-btc-swap.git
synced 2025-06-28 16:47:18 -04:00
Merge #911
911: Inform Bob that he has been punished r=binarybaron a=binarybaron Closes https://github.com/comit-network/xmr-btc-swap/issues/829 Co-authored-by: binarybaron <you@domain.com>
This commit is contained in:
commit
d7a60287f7
1 changed files with 6 additions and 3 deletions
|
@ -278,9 +278,12 @@ async fn next_state(
|
|||
state.publish_refund_btc(bitcoin_wallet).await?;
|
||||
BobState::BtcRefunded(state)
|
||||
}
|
||||
ExpiredTimelocks::Punish => BobState::BtcPunished {
|
||||
tx_lock_id: state.tx_lock_id(),
|
||||
},
|
||||
ExpiredTimelocks::Punish => {
|
||||
tracing::info!("You have been punished for not refunding in time");
|
||||
BobState::BtcPunished {
|
||||
tx_lock_id: state.tx_lock_id(),
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
BobState::BtcRefunded(state4) => BobState::BtcRefunded(state4),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue