Cleanup unused config param that was accidentally introduced

This commit is contained in:
Daniel Karzel 2021-01-07 12:23:29 +11:00
parent 903469f62a
commit 487b880371
8 changed files with 0 additions and 24 deletions

View File

@ -8,7 +8,6 @@ use tracing::info;
use uuid::Uuid;
use xmr_btc::{
bob::{self, State2},
config::Config,
ExpiredTimelocks,
};
@ -60,7 +59,6 @@ pub async fn swap<R>(
monero_wallet: Arc<crate::monero::Wallet>,
rng: R,
swap_id: Uuid,
config: Config,
) -> Result<BobState>
where
R: RngCore + CryptoRng + Send,
@ -74,7 +72,6 @@ where
monero_wallet,
rng,
swap_id,
config,
)
.await
}
@ -113,7 +110,6 @@ pub async fn run_until<R>(
monero_wallet: Arc<crate::monero::Wallet>,
mut rng: R,
swap_id: Uuid,
config: Config,
) -> Result<BobState>
where
R: RngCore + CryptoRng + Send,
@ -148,7 +144,6 @@ where
monero_wallet,
rng,
swap_id,
config,
)
.await
}
@ -171,7 +166,6 @@ where
monero_wallet,
rng,
swap_id,
config,
)
.await
}
@ -226,7 +220,6 @@ where
monero_wallet,
rng,
swap_id,
config,
)
.await
}
@ -269,7 +262,6 @@ where
monero_wallet,
rng,
swap_id,
config,
)
.await
}
@ -306,7 +298,6 @@ where
monero_wallet,
rng,
swap_id,
config,
)
.await
}
@ -327,7 +318,6 @@ where
monero_wallet,
rng,
swap_id,
config,
)
.await
}
@ -353,7 +343,6 @@ where
monero_wallet,
rng,
swap_id,
config,
)
.await
}
@ -382,7 +371,6 @@ where
monero_wallet,
rng,
swap_id,
config,
)
.await
}

View File

@ -160,7 +160,6 @@ async fn main() -> Result<()> {
db,
alice_peer_id,
alice_addr,
config,
)
.await?;
}
@ -236,7 +235,6 @@ async fn main() -> Result<()> {
db,
alice_peer_id,
alice_addr,
config,
)
.await?;
}
@ -313,7 +311,6 @@ async fn bob_swap(
db: Database,
alice_peer_id: PeerId,
alice_addr: Multiaddr,
config: Config,
) -> Result<BobState> {
let bob_behaviour = bob::Behaviour::default();
let bob_transport = build(bob_behaviour.identity())?;
@ -329,7 +326,6 @@ async fn bob_swap(
monero_wallet.clone(),
OsRng,
swap_id,
config,
);
tokio::spawn(event_loop.run());

View File

@ -98,7 +98,6 @@ async fn happy_path() {
bob_xmr_wallet.clone(),
OsRng,
Uuid::new_v4(),
config,
)
.boxed();

View File

@ -83,7 +83,6 @@ async fn given_alice_restarts_after_encsig_is_learned_resume_swap() {
bob_xmr_wallet.clone(),
OsRng,
Uuid::new_v4(),
config,
);
let alice_db_datadir = tempdir().unwrap();

View File

@ -106,7 +106,6 @@ async fn given_bob_restarts_after_encsig_is_sent_resume_swap() {
bob_xmr_wallet.clone(),
OsRng,
bob_swap_id,
config,
)
.await
.unwrap();
@ -135,7 +134,6 @@ async fn given_bob_restarts_after_encsig_is_sent_resume_swap() {
bob_xmr_wallet,
OsRng,
bob_swap_id,
config,
)
.await
.unwrap();

View File

@ -95,7 +95,6 @@ async fn given_bob_restarts_after_xmr_is_locked_resume_swap() {
bob_xmr_wallet.clone(),
OsRng,
bob_swap_id,
Config::regtest(),
)
};
@ -121,7 +120,6 @@ async fn given_bob_restarts_after_xmr_is_locked_resume_swap() {
bob_xmr_wallet.clone(),
OsRng,
bob_swap_id,
Config::regtest(),
);
let bob_final_state = select! {

View File

@ -84,7 +84,6 @@ async fn alice_punishes_if_bob_never_acts_after_fund() {
bob_xmr_wallet.clone(),
OsRng,
Uuid::new_v4(),
config,
)
.boxed();

View File

@ -81,7 +81,6 @@ async fn given_alice_restarts_after_xmr_is_locked_abort_swap() {
bob_xmr_wallet.clone(),
OsRng,
Uuid::new_v4(),
Config::regtest(),
);
let alice_swap_id = Uuid::new_v4();