From 2a2bda305e51eaa1e3fc2f54b007e5dd93218b10 Mon Sep 17 00:00:00 2001 From: Mohan <86064887+binarybaron@users.noreply.github.com> Date: Thu, 6 Nov 2025 21:41:55 +0100 Subject: [PATCH] feat(env): reduce monero_finality_confirmations and monero_double_spend_safe_confirmations to 15 (#683) --- CHANGELOG.md | 1 + swap-env/src/env.rs | 8 ++++---- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index a97d35d5..eeda0286 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,6 +7,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## [Unreleased] +- GUI + SWAP + ASB: Reduce the confirmations required to spend a Monero transaction from 22 to 15. We believe the risks of re-orgs is low again and this is safe to do. This may increase the chances of swap being successful and will reduce the time a swap takes. - GUI: Fix an issue where we a manual resume of a swap would be necessary if we failed to fetch certain Bitcoin transactions due to network issues. ## [3.2.9] - 2025-11-05 diff --git a/swap-env/src/env.rs b/swap-env/src/env.rs index 0636dbe7..5a5f9edc 100644 --- a/swap-env/src/env.rs +++ b/swap-env/src/env.rs @@ -66,8 +66,8 @@ impl GetConfig for Mainnet { // If Alice cannot lock her Monero within this timeout, // she will initiate an early refund of Bobs Bitcoin monero_lock_retry_timeout: 10.std_minutes(), - monero_finality_confirmations: 22, - monero_double_spend_safe_confirmations: 22, + monero_finality_confirmations: 15, + monero_double_spend_safe_confirmations: 15, monero_network: monero::Network::Mainnet, } } @@ -86,8 +86,8 @@ impl GetConfig for Testnet { bitcoin_network: bitcoin::Network::Testnet, monero_avg_block_time: 2.std_minutes(), monero_lock_retry_timeout: 10.std_minutes(), - monero_finality_confirmations: 22, - monero_double_spend_safe_confirmations: 22, + monero_finality_confirmations: 15, + monero_double_spend_safe_confirmations: 15, monero_network: monero::Network::Stagenet, } }