mirror of
https://github.com/comit-network/xmr-btc-swap.git
synced 2025-04-20 16:06:00 -04:00
remove changes to punish.rs
This commit is contained in:
parent
b841f0b186
commit
37c2580c6a
@ -44,9 +44,7 @@ impl TxPunish {
|
||||
watch_script: punish_address.script_pubkey(),
|
||||
}
|
||||
}
|
||||
pub fn txid(&self) -> Txid {
|
||||
self.inner.txid()
|
||||
}
|
||||
|
||||
pub fn digest(&self) -> Sighash {
|
||||
self.digest
|
||||
}
|
||||
|
@ -130,7 +130,7 @@ pub async fn refund(
|
||||
if let ExpiredTimelocks::Punish { .. } =
|
||||
state6.expired_timelock(bitcoin_wallet.as_ref()).await?
|
||||
{
|
||||
// Alice already punished Bob, so Bob sets his state to BtcPunished.
|
||||
// Punish timelock already expired, so we can't refund.
|
||||
let state = BobState::BtcPunished {
|
||||
tx_lock_id: state6.tx_lock_id(),
|
||||
};
|
||||
|
Loading…
x
Reference in New Issue
Block a user