mirror of
https://github.com/comit-network/xmr-btc-swap.git
synced 2025-07-31 18:48:52 -04:00
Pass relevant execution params into wallet instead of via functions
The execution params don't change throughout the lifetime of the program. They can be set in the wallet at the very beginning. This simplifies the interface of the wallet functions.
This commit is contained in:
parent
84ea092a1b
commit
a0830f099f
11 changed files with 46 additions and 47 deletions
|
@ -605,6 +605,7 @@ async fn init_test_wallets(
|
|||
let btc_wallet = swap::bitcoin::Wallet::new(
|
||||
electrum_rpc_url,
|
||||
bitcoin::Network::Regtest,
|
||||
execution_params.bitcoin_finality_confirmations,
|
||||
datadir,
|
||||
seed.derive_extended_private_key(bitcoin::Network::Regtest)
|
||||
.expect("Could not create extended private key from seed"),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue