fix(cli,gui): Assume double spend safety after 22 confirmations (#558)

* fix(cli,gui): Assume double spend safety after 22 confirmations

* change env.rs

---------

Co-authored-by: binarybaron <binarybaron@mail.mail>
This commit is contained in:
Mohan 2025-09-14 14:45:32 -04:00 committed by GitHub
parent fd2758bd8d
commit b96880c314
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 5 additions and 4 deletions

View file

@ -8,6 +8,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
## [Unreleased]
- GUI + CLI: Fix an issue where it'd take a long time to redeem the Monero. We did not properly skip the block scanning.
- GUI + CLI: Assume Monero double spend safety after 22 instead of after 12 blocks given the recent large re-org attacks
- ORCHESTRATOR: Change exposed mainnet port from `9839` to `9939`
## [3.0.0-beta.11] - 2025-08-20

View file

@ -60,8 +60,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: 12,
monero_double_spend_safe_confirmations: 12,
monero_finality_confirmations: 22,
monero_double_spend_safe_confirmations: 22,
monero_network: monero::Network::Mainnet,
}
}
@ -79,8 +79,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: 12,
monero_double_spend_safe_confirmations: 12,
monero_finality_confirmations: 22,
monero_double_spend_safe_confirmations: 22,
monero_network: monero::Network::Stagenet,
}
}