mirror of
https://github.com/comit-network/xmr-btc-swap.git
synced 2025-01-23 05:41:07 -05:00
818147a629
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). |
||
---|---|---|
.. | ||
harness | ||
alice_and_bob_refund_using_cancel_and_refund_command_timelock_not_expired_force.rs | ||
alice_and_bob_refund_using_cancel_and_refund_command_timelock_not_expired.rs | ||
alice_and_bob_refund_using_cancel_and_refund_command.rs | ||
alice_manually_punishes_after_bob_dead.rs | ||
alice_manually_redeems_after_enc_sig_learned.rs | ||
alice_punishes_after_restart_bob_dead.rs | ||
alice_refunds_after_restart_bob_refunded.rs | ||
bob_refunds_using_cancel_and_refund_command_timelock_not_expired_force.rs | ||
bob_refunds_using_cancel_and_refund_command_timelock_not_expired.rs | ||
concurrent_bobs_after_xmr_lock_proof_sent.rs | ||
concurrent_bobs_before_xmr_lock_proof_sent.rs | ||
ensure_same_swap_id.rs | ||
happy_path_restart_alice_after_xmr_locked.rs | ||
happy_path_restart_bob_after_xmr_locked.rs | ||
happy_path_restart_bob_before_xmr_locked.rs | ||
happy_path.rs | ||
punish.rs |