mirror of
https://github.com/comit-network/xmr-btc-swap.git
synced 2025-12-19 10:38:03 -05:00
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:
parent
fd2758bd8d
commit
b96880c314
2 changed files with 5 additions and 4 deletions
|
|
@ -8,6 +8,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
||||||
## [Unreleased]
|
## [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: 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`
|
- ORCHESTRATOR: Change exposed mainnet port from `9839` to `9939`
|
||||||
|
|
||||||
## [3.0.0-beta.11] - 2025-08-20
|
## [3.0.0-beta.11] - 2025-08-20
|
||||||
|
|
|
||||||
|
|
@ -60,8 +60,8 @@ impl GetConfig for Mainnet {
|
||||||
// If Alice cannot lock her Monero within this timeout,
|
// If Alice cannot lock her Monero within this timeout,
|
||||||
// she will initiate an early refund of Bobs Bitcoin
|
// she will initiate an early refund of Bobs Bitcoin
|
||||||
monero_lock_retry_timeout: 10.std_minutes(),
|
monero_lock_retry_timeout: 10.std_minutes(),
|
||||||
monero_finality_confirmations: 12,
|
monero_finality_confirmations: 22,
|
||||||
monero_double_spend_safe_confirmations: 12,
|
monero_double_spend_safe_confirmations: 22,
|
||||||
monero_network: monero::Network::Mainnet,
|
monero_network: monero::Network::Mainnet,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
@ -79,8 +79,8 @@ impl GetConfig for Testnet {
|
||||||
bitcoin_network: bitcoin::Network::Testnet,
|
bitcoin_network: bitcoin::Network::Testnet,
|
||||||
monero_avg_block_time: 2.std_minutes(),
|
monero_avg_block_time: 2.std_minutes(),
|
||||||
monero_lock_retry_timeout: 10.std_minutes(),
|
monero_lock_retry_timeout: 10.std_minutes(),
|
||||||
monero_finality_confirmations: 12,
|
monero_finality_confirmations: 22,
|
||||||
monero_double_spend_safe_confirmations: 12,
|
monero_double_spend_safe_confirmations: 22,
|
||||||
monero_network: monero::Network::Stagenet,
|
monero_network: monero::Network::Stagenet,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue