mirror of
https://github.com/comit-network/xmr-btc-swap.git
synced 2024-12-24 23:19:34 -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. |
||
---|---|---|
.. | ||
src | ||
tests | ||
Cargo.toml |