xmr-btc-swap/swap/src
bors[bot] 19766b9759
Merge #405
405: Concurrent swaps with same peer r=da-kami a=da-kami

Fixes #367 

- [x] Concurrent swaps with same peer

Not sure how much more time I should invest into this. We could just merge the current state and then do improvements on top...?

Improvements:

- [x] Think `// TODO: Remove unnecessary swap-id check` through and remove it
- [x] Add concurrent swap test, multiple swaps with same Bob
- [ ] Save swap messages without matching swap in execution in the database
- [ ] Assert the balances in the new concurrent swap tests
- [ ] ~~Add concurrent swap test, multiple swaps with different Bobs~~
- [ ] ~~Send swap-id in separate message, not on top of `Message0`~~

Co-authored-by: Daniel Karzel <daniel@comit.network>
2021-04-13 08:50:44 +00:00
..
asb Remove redundant noun from tracing initialiser functions 2021-04-08 16:14:32 +10:00
bin Merge #405 2021-04-13 08:50:44 +00:00
bitcoin Point BDK to commit that fixes overflow error 2021-04-06 14:50:27 +10:00
cli Remove redundant noun from tracing initialiser functions 2021-04-08 16:14:32 +10:00
database Await 10 confirmations of lock tx in refund 2021-04-01 16:03:38 +11:00
monero Swap-id as file name for generated Monero wallet 2021-04-08 19:23:54 +10:00
network Multiple swaps with the same peer 2021-04-13 18:16:19 +10:00
protocol Merge #405 2021-04-13 08:50:44 +00:00
asb.rs Remove redundant noun from tracing initialiser functions 2021-04-08 16:14:32 +10:00
bitcoin.rs Alice to validate Bob's PSBT for correctness 2021-03-30 13:02:56 +11:00
cli.rs Remove redundant noun from tracing initialiser functions 2021-04-08 16:14:32 +10:00
database.rs Save Alice's peer-id in the db for Bob 2021-04-01 16:06:48 +11:00
env.rs Safely abort swap if TxLock is not confirmed in a reasonable time 2021-03-30 11:13:09 +11:00
fs.rs Import anyhow::Result across the codebase 2021-02-22 13:26:56 +11:00
kraken.rs Make kraken module emit PriceUpdates instead of Rates 2021-04-06 16:16:56 +10:00
lib.rs Move asb tracing initializer to asb module 2021-04-08 10:51:54 +10:00
monero_ext.rs Upgrade to bdk 4.0 2021-02-19 15:18:37 +11:00
monero.rs Add a configurable spread to the ASB 2021-04-06 16:16:58 +10:00
network.rs Remove connection handling from swap execution 2021-03-24 15:17:54 +11:00
protocol.rs Multiple swaps with the same peer 2021-04-13 18:16:19 +10:00
seed.rs Seed should neither be Clone nor Copy 2021-03-24 11:39:39 +11:00