Describe additional state for ToDo that might cause trouble

If we wait for lock transaction confirmations immediately after sending the transaction without saving this state to the DB this might cause locking the money twice.
An additional state is needed for such a scenario.
This commit is contained in:
Daniel Karzel 2021-01-11 19:08:24 +11:00
parent 59f01ad680
commit f8848aca55

View File

@ -135,6 +135,9 @@ where
.await?;
// TODO(Franck): Wait for Monero to be confirmed once
// Waiting for XMR confirmations should not be done in here, but in a separate
// state! We have to record that Alice has already sent the transaction.
// Otherwise Alice might publish the lock tx twice!
event_loop_handle
.send_message2(channel, alice::Message2 {