mirror of
https://github.com/comit-network/xmr-btc-swap.git
synced 2024-12-17 20:04:25 -05:00
Merge #1447
1447: Update lock timeout to 10 min r=binarybaron a=pokkst This updates the lock timeout from 3 min to 10 min. Over Tor, it is sometimes very slow to setup a swap, completely missing the 3 minute window. The BTC will still lock and broadcast, but the ASB will have already stopped watching for the lock tx, thus will not lock the XMR once the BTC lock tx confirms. This mitigates that issue. Co-authored-by: pokkst <pokkst@protonmail.com>
This commit is contained in:
commit
c93eaa8057
@ -46,7 +46,7 @@ pub struct Regtest;
|
|||||||
impl GetConfig for Mainnet {
|
impl GetConfig for Mainnet {
|
||||||
fn get_config() -> Config {
|
fn get_config() -> Config {
|
||||||
Config {
|
Config {
|
||||||
bitcoin_lock_mempool_timeout: 3.std_minutes(),
|
bitcoin_lock_mempool_timeout: 10.std_minutes(),
|
||||||
bitcoin_lock_confirmed_timeout: 2.std_hours(),
|
bitcoin_lock_confirmed_timeout: 2.std_hours(),
|
||||||
bitcoin_finality_confirmations: 1,
|
bitcoin_finality_confirmations: 1,
|
||||||
bitcoin_avg_block_time: 10.std_minutes(),
|
bitcoin_avg_block_time: 10.std_minutes(),
|
||||||
@ -63,7 +63,7 @@ impl GetConfig for Mainnet {
|
|||||||
impl GetConfig for Testnet {
|
impl GetConfig for Testnet {
|
||||||
fn get_config() -> Config {
|
fn get_config() -> Config {
|
||||||
Config {
|
Config {
|
||||||
bitcoin_lock_mempool_timeout: 3.std_minutes(),
|
bitcoin_lock_mempool_timeout: 10.std_minutes(),
|
||||||
bitcoin_lock_confirmed_timeout: 1.std_hours(),
|
bitcoin_lock_confirmed_timeout: 1.std_hours(),
|
||||||
bitcoin_finality_confirmations: 1,
|
bitcoin_finality_confirmations: 1,
|
||||||
bitcoin_avg_block_time: 10.std_minutes(),
|
bitcoin_avg_block_time: 10.std_minutes(),
|
||||||
|
Loading…
Reference in New Issue
Block a user