xmr-btc-swap/swap/src
Thomas Eizinger 958e5b12bc
Don't match on expired_timelocks and race it in a select in parallel
There is no point in first checking for the expired timelocks and
then constructing a `select!` that also watches for the timelock to
expiry.

We can simply only have the select! invocation to achieve the same
effect. In case the timelock is already expired, this future will
resolve immediately.

Normally, the polling order of `select!` is pseudo-random. We
configure it to be _biased_ here to make sure the futures are polled
in order.
2021-04-01 17:08:26 +11:00
..
asb Alice resumes swaps 2021-04-01 16:09:13 +11:00
bin Save Alice's peer-id in the db for Bob 2021-04-01 16:06:48 +11:00
bitcoin Alice to validate Bob's PSBT for correctness 2021-03-30 13:02:56 +11:00
cli Save Alice's peer-id in the db for Bob 2021-04-01 16:06:48 +11:00
database Await 10 confirmations of lock tx in refund 2021-04-01 16:03:38 +11:00
monero Merge #383 #385 #386 2021-03-29 22:31:43 +00:00
network Remove connection handling from swap execution 2021-03-24 15:17:54 +11:00
protocol Don't match on expired_timelocks and race it in a select in parallel 2021-04-01 17:08:26 +11:00
asb.rs Provide stronger isolation of kraken module 2021-03-05 13:56:25 +11:00
bitcoin.rs Alice to validate Bob's PSBT for correctness 2021-03-30 13:02:56 +11:00
cli.rs Remove CLI config file in favour of parameters 2021-03-15 15:41:46 +11: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 Disable backoffs max_elapsed_time functionality 2021-03-11 13:33:46 +11:00
lib.rs Merge #321 2021-03-17 10:22:26 +00:00
monero_ext.rs Upgrade to bdk 4.0 2021-02-19 15:18:37 +11:00
monero.rs Simplify code within BobState::XmrLockProofReceived 2021-03-18 15:45:58 +11:00
network.rs Remove connection handling from swap execution 2021-03-24 15:17:54 +11:00
protocol.rs Alice to validate Bob's PSBT for correctness 2021-03-30 13:02:56 +11:00
seed.rs Seed should neither be Clone nor Copy 2021-03-24 11:39:39 +11:00
trace.rs Use tracing-log feature flag instead of manual initialization 2021-03-29 12:15:50 +11:00