Rename ExecutionParams to EnvironmentConfig

This commit is contained in:
Thomas Eizinger 2021-03-17 14:55:42 +11:00
parent bc43ed6ebd
commit 09c41f89c4
No known key found for this signature in database
GPG key ID: 651AC83A6C6C8B96
14 changed files with 132 additions and 136 deletions

View file

@ -1,4 +1,4 @@
use crate::execution_params::ExecutionParams;
use crate::env::Config;
use crate::network::quote::BidQuote;
use crate::network::{peer_tracker, quote, spot_price};
use crate::protocol::alice::{
@ -206,11 +206,11 @@ impl Behaviour {
peer: PeerId,
btc: bitcoin::Amount,
xmr: monero::Amount,
exec_params: ExecutionParams,
env_config: Config,
bitcoin_wallet: &bitcoin::Wallet,
rng: &mut (impl RngCore + CryptoRng),
) -> Result<()> {
let state0 = State0::new(btc, xmr, exec_params, bitcoin_wallet, rng).await?;
let state0 = State0::new(btc, xmr, env_config, bitcoin_wallet, rng).await?;
tracing::info!(
%peer,