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/src/network
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.
3 years ago
..
swap_setup Do not actively set `KeepAlice::No` for `swap_setup` 3 years ago
alice.rs Move files from `protocol` to appropriate module 3 years ago
bob.rs Move files from `protocol` to appropriate module 3 years ago
cbor_request_response.rs Always log whole causality chain for errors. 3 years ago
encrypted_signature.rs Move files from `protocol` to appropriate module 3 years ago
impl_from_rr_event.rs Improve error reporting of failed protocols 3 years ago
json_pull_codec.rs Improve logging by adding details as fields instead of into the msg. 3 years ago
quote.rs Quote protocol asb/cli instead of alice/bob 3 years ago
redial.rs Move files from `protocol` to appropriate module 3 years ago
swap_setup.rs Move files from `protocol` to appropriate module 3 years ago
swarm.rs Move files from `protocol` to appropriate module 3 years ago
test.rs Network protocol tests for spot_price behaviour 3 years ago
tor_transport.rs Use or-pattern stabilized in Rust 1.53 where possible 3 years ago
transfer_proof.rs Move files from `protocol` to appropriate module 3 years ago
transport.rs Refactor transports to construct them specific for each application 3 years ago