mirror of
https://github.com/comit-network/xmr-btc-swap.git
synced 2025-08-06 05:24:42 -04:00
Activate mainnet for the CLI
This includes testing CLI commandline args Clap's `default_value_with` actually did not work on `Subcommand`s because the parent's flags were not picked up. This was fixed by changing parameters dependent on testnet/mainnet to options. This problem should have been detected by tests, that's why the command line parameter tests were finally (re-)added. Thanks to @rishflab for some pre-work for this.
This commit is contained in:
parent
1cdc23de32
commit
69cf12620d
3 changed files with 813 additions and 114 deletions
|
@ -3,7 +3,7 @@ use std::cmp::max;
|
|||
use std::time::Duration;
|
||||
use time::NumericalStdDurationShort;
|
||||
|
||||
#[derive(Debug, Copy, Clone)]
|
||||
#[derive(Debug, Copy, Clone, PartialEq)]
|
||||
pub struct Config {
|
||||
pub bitcoin_lock_confirmed_timeout: Duration,
|
||||
pub bitcoin_finality_confirmations: u32,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue