mirror of
https://github.com/comit-network/xmr-btc-swap.git
synced 2025-07-24 07:21:02 -04:00
Remove Refund timelock and T0/T1/T2
There are no refund timelock, only a cancellation timelock and punish timelock. Refund can be done as soon as the cancellation transaction is published.
This commit is contained in:
parent
405e377f79
commit
f0736d0906
11 changed files with 194 additions and 158 deletions
|
@ -88,7 +88,7 @@ pub async fn init_alice_state(
|
|||
v_a,
|
||||
amounts.btc,
|
||||
amounts.xmr,
|
||||
config.bitcoin_refund_timelock,
|
||||
config.bitcoin_cancel_timelock,
|
||||
config.bitcoin_punish_timelock,
|
||||
redeem_address,
|
||||
punish_address,
|
||||
|
@ -170,7 +170,7 @@ pub async fn init_bob_state(
|
|||
&mut OsRng,
|
||||
btc_to_swap,
|
||||
xmr_to_swap,
|
||||
config.bitcoin_refund_timelock,
|
||||
config.bitcoin_cancel_timelock,
|
||||
config.bitcoin_punish_timelock,
|
||||
refund_address,
|
||||
);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue