From 7e0c44ad1d95aeb6f2ae950477fbd93a9f0ee959 Mon Sep 17 00:00:00 2001 From: Thomas Eizinger Date: Thu, 11 Mar 2021 15:01:55 +1100 Subject: [PATCH] Add avg monero block time to execution params --- swap/src/execution_params.rs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/swap/src/execution_params.rs b/swap/src/execution_params.rs index 5b6f017b..db80d543 100644 --- a/swap/src/execution_params.rs +++ b/swap/src/execution_params.rs @@ -7,6 +7,7 @@ pub struct ExecutionParams { pub bob_time_to_act: Duration, pub bitcoin_finality_confirmations: u32, pub bitcoin_avg_block_time: Duration, + pub monero_avg_block_time: Duration, pub monero_finality_confirmations: u32, pub bitcoin_cancel_timelock: CancelTimelock, pub bitcoin_punish_timelock: PunishTimelock, @@ -31,6 +32,7 @@ impl GetExecutionParams for Mainnet { bob_time_to_act: 10.minutes(), bitcoin_finality_confirmations: 3, bitcoin_avg_block_time: 10.minutes(), + monero_avg_block_time: 2.minutes(), monero_finality_confirmations: 15, bitcoin_cancel_timelock: CancelTimelock::new(72), bitcoin_punish_timelock: PunishTimelock::new(72), @@ -44,6 +46,7 @@ impl GetExecutionParams for Testnet { bob_time_to_act: 60.minutes(), bitcoin_finality_confirmations: 1, bitcoin_avg_block_time: 5.minutes(), + monero_avg_block_time: 2.minutes(), monero_finality_confirmations: 10, bitcoin_cancel_timelock: CancelTimelock::new(12), bitcoin_punish_timelock: PunishTimelock::new(6), @@ -57,6 +60,7 @@ impl GetExecutionParams for Regtest { bob_time_to_act: 30.seconds(), bitcoin_finality_confirmations: 1, bitcoin_avg_block_time: 5.seconds(), + monero_avg_block_time: 1.seconds(), monero_finality_confirmations: 10, bitcoin_cancel_timelock: CancelTimelock::new(100), bitcoin_punish_timelock: PunishTimelock::new(50),