mirror of
https://github.com/comit-network/xmr-btc-swap.git
synced 2025-06-07 22:52:45 -04:00
Buffer transfer proof if we are not connected to Bob
The request-response behaviour that is used for sending the transfer proof actually has a functionality for buffering a message if we are currently not connected. However, the request-response behaviour also emits a dial attempt and **drops** all buffered messages if this dial attempt fails. For us, the dial attempt will very likely always fail because Bob is very likely behind NAT and we have to wait for him to reconnect to us. To mitigate this, we build our own buffer within the EventLoop and send transfer proofs as soon as we are connected again. Resolves #348.
This commit is contained in:
parent
cde3f0f74a
commit
638a169a04
5 changed files with 71 additions and 33 deletions
3
.github/workflows/ci.yml
vendored
3
.github/workflows/ci.yml
vendored
|
@ -114,7 +114,8 @@ jobs:
|
|||
matrix:
|
||||
test_name: [
|
||||
happy_path,
|
||||
happy_path_restart_bob_before_comm,
|
||||
happy_path_restart_bob_after_xmr_locked,
|
||||
happy_path_restart_bob_before_xmr_locked,
|
||||
bob_refunds_using_cancel_and_refund_command,
|
||||
bob_refunds_using_cancel_and_refund_command_timelock_not_expired,
|
||||
bob_refunds_using_cancel_and_refund_command_timelock_not_expired_force,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue