mirror of
https://github.com/comit-network/xmr-btc-swap.git
synced 2025-12-10 06:15:35 -05:00
Wait for Bob's refund finality
For Alice we ensure to wait for redeem/punish finality, so it should be the same for Bob.
This commit is contained in:
parent
d6bf66c1f4
commit
8a7d746e96
6 changed files with 54 additions and 57 deletions
|
|
@ -62,6 +62,7 @@ struct BobParams {
|
|||
monero_wallet: Arc<monero::Wallet>,
|
||||
alice_address: Multiaddr,
|
||||
alice_peer_id: PeerId,
|
||||
config: Config,
|
||||
}
|
||||
|
||||
impl BobParams {
|
||||
|
|
@ -74,6 +75,7 @@ impl BobParams {
|
|||
self.monero_wallet.clone(),
|
||||
self.alice_address.clone(),
|
||||
self.alice_peer_id.clone(),
|
||||
self.config,
|
||||
)
|
||||
}
|
||||
}
|
||||
|
|
@ -112,7 +114,7 @@ impl TestContext {
|
|||
let (swap, event_loop) = self
|
||||
.bob_params
|
||||
.builder()
|
||||
.with_init_params(self.swap_amounts, Config::regtest())
|
||||
.with_init_params(self.swap_amounts)
|
||||
.build()
|
||||
.await
|
||||
.unwrap();
|
||||
|
|
@ -357,6 +359,7 @@ where
|
|||
monero_wallet: bob_monero_wallet.clone(),
|
||||
alice_address: alice_params.listen_address.clone(),
|
||||
alice_peer_id: alice_params.peer_id().await,
|
||||
config,
|
||||
};
|
||||
|
||||
let test = TestContext {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue