mirror of
https://github.com/comit-network/xmr-btc-swap.git
synced 2024-12-19 04:44:31 -05:00
16dfea035b
To achieve this, we decompose `watch_for_locked_xmr` into two parts: 1. A non-self-consuming function to construct a `WatchRequest` 2. A state transition that can now consume `self` again because it is only called once within the whole select! expression. Ideally, we would move more logic onto this state transition (like comparing the actual amounts and fail the transition if it is not valid). Doing so would have an unfortunate side-effect: We would always wait for the full confirmations before checking whether or not we actually receive enough XMR. This allows us to have state transitions that consume self. |
||
---|---|---|
.. | ||
asb | ||
bin | ||
bitcoin | ||
cli | ||
database | ||
monero | ||
network | ||
protocol | ||
asb.rs | ||
bitcoin.rs | ||
cli.rs | ||
database.rs | ||
env.rs | ||
fs.rs | ||
kraken.rs | ||
lib.rs | ||
monero_ext.rs | ||
monero.rs | ||
network.rs | ||
protocol.rs | ||
seed.rs | ||
trace.rs |