mirror of
https://github.com/comit-network/xmr-btc-swap.git
synced 2025-05-20 15:40:48 -04:00
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:
parent
59f01ad680
commit
f8848aca55
1 changed files with 3 additions and 0 deletions
|
@ -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 {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue