From 73736283867874c61a38e82d414b6da81b2a51ca Mon Sep 17 00:00:00 2001 From: binarybaron Date: Sun, 16 Jan 2022 14:29:12 +0100 Subject: [PATCH] Reduce required confirmations for Bitcoin transactions from 2 to 1 --- CHANGELOG.md | 1 + swap/src/env.rs | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 8c80f2fc..6c09cdce 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -17,6 +17,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 - Adjust quote based on Bitcoin balance. If the max_buy_btc in the ASB config is higher than the available balance to trade it will return the max available balance discounting the locking fees for monero, in the case the balance is lower than the min_buy_btc config it will return 0 to the CLI. If the ASB returns a quote of 0 the CLI will not allow you continue with a trade. +- Reduce required confirmations for Bitcoin transactions from 2 to 1 ## [0.10.2] - 2021-12-25 diff --git a/swap/src/env.rs b/swap/src/env.rs index 8ed861b4..73c6d665 100644 --- a/swap/src/env.rs +++ b/swap/src/env.rs @@ -48,7 +48,7 @@ impl GetConfig for Mainnet { Config { bitcoin_lock_mempool_timeout: 3.std_minutes(), bitcoin_lock_confirmed_timeout: 2.std_hours(), - bitcoin_finality_confirmations: 2, + bitcoin_finality_confirmations: 1, bitcoin_avg_block_time: 10.std_minutes(), bitcoin_cancel_timelock: CancelTimelock::new(72), bitcoin_punish_timelock: PunishTimelock::new(72), @@ -65,7 +65,7 @@ impl GetConfig for Testnet { Config { bitcoin_lock_mempool_timeout: 3.std_minutes(), bitcoin_lock_confirmed_timeout: 1.std_hours(), - bitcoin_finality_confirmations: 2, + bitcoin_finality_confirmations: 1, bitcoin_avg_block_time: 10.std_minutes(), bitcoin_cancel_timelock: CancelTimelock::new(12), bitcoin_punish_timelock: PunishTimelock::new(6),