xmr-btc-swap/swap/tests
binarybaron c027e51087
refactor(swap): Upgrade libp2p to 0.53.2, reliable retry mechanisms (#109)
Our libp2p version is out of date, and we need to tackle the upgrade even though it's a significant undertaking. This'll also fix some other [issues](https://github.com/UnstoppableSwap/core/issues/95).

## This PR includes the following changes:
- Breaking network protocol change: The libp2p version has been upgraded to 0.53 which includes breaking network protocol changes. ASBs and CLIs will not be able to swap if one of them is on the old version.
- ASB: Transfer proofs will be repeatedly sent until they are acknowledged by the other party. This fixes a bug where it'd seem to Bob as if the Alice never locked the Monero. Forcing the swap to be refunded.
- CLI: Encrypted signatures will be repeatedly sent until they are acknowledged by the other party
- CLI+ASB: Libp2p network errors in request-response protocols are now propagated throught the event loop channels. This allows the caller to retry if an error occurs (e.g timeout)

Closes https://github.com/UnstoppableSwap/core/issues/101, https://github.com/UnstoppableSwap/core/issues/95
2024-11-11 00:14:42 +01:00
..
harness refactor(swap): Upgrade libp2p to 0.53.2, reliable retry mechanisms (#109) 2024-11-11 00:14:42 +01:00
alice_and_bob_refund_using_cancel_and_refund_command.rs feat (Cli): Display reason for failed cancel-refund operation to the user (#1668) 2024-07-01 23:14:44 +02:00
alice_and_bob_refund_using_cancel_and_refund_command_timelock_not_expired.rs feat (Cli): Display reason for failed cancel-refund operation to the user (#1668) 2024-07-01 23:14:44 +02:00
alice_and_bob_refund_using_cancel_then_refund_command.rs feat(swap): merge cancel/refund commands into one command 2023-01-08 12:53:56 +02:00
alice_manually_punishes_after_bob_dead.rs feat: cargo project at root 2024-08-08 00:49:04 +02:00
alice_manually_punishes_after_bob_dead_and_bob_cancels.rs feat: cargo project at root 2024-08-08 00:49:04 +02:00
alice_manually_redeems_after_enc_sig_learned.rs Make --force the default behaviour for manual recovery 2021-09-09 18:08:18 +10:00
alice_punishes_after_restart_bob_dead.rs feat: cargo project at root 2024-08-08 00:49:04 +02:00
alice_refunds_after_restart_bob_refunded.rs feat: cargo project at root 2024-08-08 00:49:04 +02:00
bdk.sh feat: cargo project at root 2024-08-08 00:49:04 +02:00
concurrent_bobs_after_xmr_lock_proof_sent.rs Move files from protocol to appropriate module 2021-06-28 10:04:08 +10:00
concurrent_bobs_before_xmr_lock_proof_sent.rs feat: cargo project at root 2024-08-08 00:49:04 +02:00
ensure_same_swap_id.rs build(deps): update rust-toolchain to 1.67 and bump uuid to 1.4 2023-07-31 11:49:28 +02:00
happy_path.rs feat: cargo project at root 2024-08-08 00:49:04 +02:00
happy_path_bob_offline_while_alice_redeems_btc.rs feat: cargo project at root 2024-08-08 00:49:04 +02:00
happy_path_restart_alice_after_xmr_locked.rs Move files from protocol to appropriate module 2021-06-28 10:04:08 +10:00
happy_path_restart_bob_after_xmr_locked.rs feat: cargo project at root 2024-08-08 00:49:04 +02:00
happy_path_restart_bob_before_xmr_locked.rs feat: cargo project at root 2024-08-08 00:49:04 +02:00
punish.rs feat: cargo project at root 2024-08-08 00:49:04 +02:00
rpc.rs refactor(cli): Refactor RPC server and fix tests 2024-08-28 12:18:58 +02:00