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
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
..
asb Quote protocol asb/cli instead of alice/bob 3 years ago
bin Move files from `protocol` to appropriate module 3 years ago
bitcoin Bump bdk from 0.7.0 to 0.8.0 3 years ago
cli Quote protocol asb/cli instead of alice/bob 3 years ago
database `swap_setup` instead of `spot_price` and `execution_setup` 3 years ago
monero `swap_setup` instead of `spot_price` and `execution_setup` 3 years ago
network Do not actively set `KeepAlice::No` for `swap_setup` 3 years ago
protocol Move files from `protocol` to appropriate module 3 years ago
asb.rs Move files from `protocol` to appropriate module 3 years ago
bitcoin.rs `swap_setup` instead of `spot_price` and `execution_setup` 3 years ago
cli.rs Move files from `protocol` to appropriate module 3 years ago
database.rs Save Alice's peer-id in the db for Bob 3 years ago
env.rs ASB aborts if CLI does not lock BTC 3 years ago
fs.rs Improve logging by adding details as fields instead of into the msg. 3 years ago
kraken.rs Always log whole causality chain for errors. 3 years ago
lib.rs Add support for swapping through Tor. 3 years ago
monero.rs `swap_setup` instead of `spot_price` and `execution_setup` 3 years ago
monero_ext.rs Upgrade to bdk 4.0 3 years ago
network.rs Move files from `protocol` to appropriate module 3 years ago
protocol.rs Dynamically chose fee for TxCancel. 3 years ago
seed.rs Derive Tor secret key from seed. 3 years ago
tor.rs Remove dead code 3 years ago