xmr-btc-swap/swap
Thomas Eizinger 16dfea035b
Simplify code within BobState::XmrLockProofReceived
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.
2021-03-18 15:45:58 +11:00
..
src Simplify code within BobState::XmrLockProofReceived 2021-03-18 15:45:58 +11:00
tests Rename ExecutionParams to EnvironmentConfig 2021-03-17 16:31:16 +11:00
Cargo.toml prepare 0.3 release 2021-03-18 11:11:20 +11:00