remove changes to punish.rs

This commit is contained in:
patrini32 2024-06-09 14:29:57 +03:00 committed by patrini32
parent b841f0b186
commit 37c2580c6a
2 changed files with 2 additions and 4 deletions

View File

@ -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
}

View File

@ -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(),
};