From 0d40179a65dd5b757b2cf42d114ff45cde5e78bc Mon Sep 17 00:00:00 2001 From: patrini32 <171664803+patrini32@users.noreply.github.com> Date: Sun, 9 Jun 2024 14:24:06 +0300 Subject: [PATCH] remove changes from state.rs --- swap/src/protocol/bob/state.rs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/swap/src/protocol/bob/state.rs b/swap/src/protocol/bob/state.rs index 515be0fb..dea2c7d8 100644 --- a/swap/src/protocol/bob/state.rs +++ b/swap/src/protocol/bob/state.rs @@ -268,11 +268,13 @@ impl State1 { refund_address: self.refund_address, redeem_address: self.redeem_address, tx_lock: self.tx_lock, + punish_address: self.punish_address, tx_cancel_sig_a: msg.tx_cancel_sig, tx_refund_encsig: msg.tx_refund_encsig, min_monero_confirmations: self.min_monero_confirmations, tx_redeem_fee: self.tx_redeem_fee, tx_refund_fee: self.tx_refund_fee, + tx_punish_fee: self.tx_punish_fee, tx_cancel_fee: self.tx_cancel_fee, }) } @@ -291,6 +293,7 @@ pub struct State2 { pub punish_timelock: PunishTimelock, pub refund_address: bitcoin::Address, redeem_address: bitcoin::Address, + punish_address: bitcoin::Address, pub tx_lock: bitcoin::TxLock, tx_cancel_sig_a: Signature, tx_refund_encsig: bitcoin::EncryptedSignature, @@ -298,6 +301,8 @@ pub struct State2 { #[serde(with = "::bitcoin::util::amount::serde::as_sat")] tx_redeem_fee: bitcoin::Amount, #[serde(with = "::bitcoin::util::amount::serde::as_sat")] + tx_punish_fee: bitcoin::Amount, + #[serde(with = "::bitcoin::util::amount::serde::as_sat")] pub tx_refund_fee: bitcoin::Amount, #[serde(with = "::bitcoin::util::amount::serde::as_sat")] pub tx_cancel_fee: bitcoin::Amount,