mirror of
https://github.com/comit-network/xmr-btc-swap.git
synced 2025-08-09 15:02:47 -04:00
Pass execution params directly into wallet for initialization
This reduces the amount of parameters that we need to pass in.
This commit is contained in:
parent
7213907a79
commit
bc43ed6ebd
13 changed files with 111 additions and 153 deletions
|
@ -206,11 +206,11 @@ impl Behaviour {
|
|||
peer: PeerId,
|
||||
btc: bitcoin::Amount,
|
||||
xmr: monero::Amount,
|
||||
execution_params: ExecutionParams,
|
||||
exec_params: ExecutionParams,
|
||||
bitcoin_wallet: &bitcoin::Wallet,
|
||||
rng: &mut (impl RngCore + CryptoRng),
|
||||
) -> Result<()> {
|
||||
let state0 = State0::new(btc, xmr, execution_params, bitcoin_wallet, rng).await?;
|
||||
let state0 = State0::new(btc, xmr, exec_params, bitcoin_wallet, rng).await?;
|
||||
|
||||
tracing::info!(
|
||||
%peer,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue