mirror of
https://github.com/comit-network/xmr-btc-swap.git
synced 2025-04-20 07:56:05 -04:00
fix
This commit is contained in:
parent
b4c962bd47
commit
50cca967d1
9
swap/concurrent_bobs_before_xmr_lock_proof_sent.txt
Normal file
9
swap/concurrent_bobs_before_xmr_lock_proof_sent.txt
Normal file
@ -0,0 +1,9 @@
|
||||
|
||||
running 1 test
|
||||
[2m2024-06-28T14:26:34.451940Z[0m [32m INFO[0m [2mtestcontainers::core::logs[0m[2m:[0m Found message after comparing 76 lines
|
||||
[2m2024-06-28T14:26:38.028659Z[0m [32m INFO[0m [2mtestcontainers::core::logs[0m[2m:[0m Found message after comparing 2 lines
|
||||
[2m2024-06-28T14:26:38.049614Z[0m [32m INFO[0m [2mmonero_harness[0m[2m:[0m Starting monerod: S7RU_monerod
|
||||
[2m2024-06-28T14:26:40.014081Z[0m [32m INFO[0m [2mtestcontainers::core::logs[0m[2m:[0m Found message after comparing 197 lines
|
||||
[2m2024-06-28T14:26:40.034969Z[0m [32m INFO[0m [2mmonero_harness[0m[2m:[0m Starting miner wallet: miner
|
||||
[2m2024-06-28T14:26:42.084045Z[0m [32m INFO[0m [2mtestcontainers::core::logs[0m[2m:[0m Found message after comparing 14 lines
|
||||
[2m2024-06-28T14:26:43.604128Z[0m [32m INFO[0m [2mmonero_harness[0m[2m:[0m Starting wallet: alice
|
@ -144,8 +144,7 @@ impl EventLoop {
|
||||
}else {
|
||||
tracing::warn!(
|
||||
%swap_id,
|
||||
"Ignoring transfer proof for swap {} while running swap {}. Expected to receive it from {}",
|
||||
swap_id,
|
||||
"Ignoring malicious transfer proof from {}, expected to receive it from {}",
|
||||
self.swap_id,
|
||||
buffer_swap_alice_peer_id);
|
||||
continue;
|
||||
@ -166,7 +165,7 @@ impl EventLoop {
|
||||
if let Some(sqlx::Error::RowNotFound) = e.downcast_ref::<sqlx::Error>() {
|
||||
tracing::warn!("Ignoring transfer proof for swap {} while running swap {}. We do not have a record of this swap", swap_id, self.swap_id);
|
||||
} else {
|
||||
tracing::error!("Ignoring transfer proof for swap {} while running swap {}. Failed to retrieve the peer id of the corresponding swap: {:#}", swap_id, self.swap_id, e);
|
||||
tracing::error!("Ignoring transfer proof for swap {} while running swap {}. Failed to retrieve the peer id of Alice for the corresponding swap: {:#}", swap_id, self.swap_id, e);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -47,12 +47,12 @@ async fn concurrent_bobs_before_xmr_lock_proof_sent() {
|
||||
|
||||
// The 1st (paused) swap is expected to finish successfully because the transfer proof is buffered when it is receives while another swap is running.
|
||||
|
||||
let alice_state_1 = alice_swap_1.await??;
|
||||
assert!(matches!(alice_state_1, AliceState::BtcRedeemed { .. }));
|
||||
|
||||
let bob_state_1 = bob::run(bob_swap_1).await?;
|
||||
assert!(matches!(bob_state_1, BobState::XmrRedeemed { .. }));
|
||||
|
||||
let alice_state_1 = alice_swap_1.await??;
|
||||
assert!(matches!(alice_state_1, AliceState::BtcRedeemed { .. }));
|
||||
|
||||
Ok(())
|
||||
})
|
||||
.await;
|
||||
|
Loading…
x
Reference in New Issue
Block a user