xmr-btc-swap/swap
Daniel Karzel dc89a837e7
Do not actively set KeepAlice::No for swap_setup
Closing the connection upon completing the `swap_setup` protocol caused problems on the ASB side, because the CLI would close the connection before the last message was properly processed. This would result in swaps going into execution on the CLI side, but not on the ASB side.
The CLI ensures an open connection to the ASB over the complete course of a swap. So it does not make much sense to allow a protocol to close the connection (the CLI would immediately redial).
For the Alice we set the initial `KeepAlive` to `10` seconds because Bob is expected to request a spot price in reasonable time after opening a connection on the protocol. Since Tor connections can take some time we set 10 seconds fow now for resilience.
2021-06-28 12:08:51 +10:00
..
src Do not actively set KeepAlice::No for swap_setup 2021-06-28 12:08:51 +10:00
tests Move files from protocol to appropriate module 2021-06-28 10:04:08 +10:00
Cargo.toml swap_setup instead of spot_price and execution_setup 2021-06-28 10:04:07 +10:00