You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
xmr-btc-swap/swap/tests
Daniel Karzel 818147a629
`swap_setup` instead of `spot_price` and `execution_setup`
Having `spot_price` and `execution_setup` as separate protocols did not bring any advantages, but was problematic because we had to ensure that `execution_setup` would be triggered after `spot_price`. Because of this dependency it is better to combine the protocols into one.

Combining the protocols also allows a refactoring to get rid of the `libp2p-async-await` dependency.

Alice always listens for the `swap_setup` protocol. When Bob opens a substream on that protocol the spot price is communicated, and then all execution setup messages (swap-id and signature exchange).
3 years ago
..
harness `swap_setup` instead of `spot_price` and `execution_setup` 3 years ago
alice_and_bob_refund_using_cancel_and_refund_command.rs Log exchange rate at each state. 3 years ago
alice_and_bob_refund_using_cancel_and_refund_command_timelock_not_expired.rs Log exchange rate at each state. 3 years ago
alice_and_bob_refund_using_cancel_and_refund_command_timelock_not_expired_force.rs Log exchange rate at each state. 3 years ago
alice_manually_punishes_after_bob_dead.rs Log exchange rate at each state. 3 years ago
alice_manually_redeems_after_enc_sig_learned.rs Log exchange rate at each state. 3 years ago
alice_punishes_after_restart_bob_dead.rs Log exchange rate at each state. 3 years ago
alice_refunds_after_restart_bob_refunded.rs Log exchange rate at each state. 3 years ago
bob_refunds_using_cancel_and_refund_command_timelock_not_expired.rs Log exchange rate at each state. 3 years ago
bob_refunds_using_cancel_and_refund_command_timelock_not_expired_force.rs Log exchange rate at each state. 3 years ago
concurrent_bobs_after_xmr_lock_proof_sent.rs Log exchange rate at each state. 3 years ago
concurrent_bobs_before_xmr_lock_proof_sent.rs Log exchange rate at each state. 3 years ago
ensure_same_swap_id.rs Don't stutter 3 years ago
happy_path.rs Log exchange rate at each state. 3 years ago
happy_path_restart_alice_after_xmr_locked.rs Log exchange rate at each state. 3 years ago
happy_path_restart_bob_after_xmr_locked.rs Log exchange rate at each state. 3 years ago
happy_path_restart_bob_before_xmr_locked.rs Log exchange rate at each state. 3 years ago
punish.rs Log exchange rate at each state. 3 years ago