mirror of
https://github.com/comit-network/xmr-btc-swap.git
synced 2025-08-17 18:50:59 -04:00
Merge #881
881: Record the monero-wallet-restore blockcheight before locking BTC r=da-kami a=da-kami This solves issues where the CLI went offline after sending the BTC transaction, and the monero wallet restore blockheight being recorded after Alice locked the Monero, resulting in the generated XMR redeem wallet not detecting the transaction and reporting `No unlocked balance in the specified account`. Co-authored-by: Daniel Karzel <daniel@comit.network>
This commit is contained in:
commit
97cf08e2d5
10 changed files with 54 additions and 17 deletions
|
@ -14,7 +14,7 @@ pub async fn cancel(
|
|||
let state = db.get_state(swap_id).await?.try_into()?;
|
||||
|
||||
let state6 = match state {
|
||||
BobState::BtcLocked(state3) => state3.cancel(),
|
||||
BobState::BtcLocked { state3, .. } => state3.cancel(),
|
||||
BobState::XmrLockProofReceived { state, .. } => state.cancel(),
|
||||
BobState::XmrLocked(state4) => state4.cancel(),
|
||||
BobState::EncSigSent(state4) => state4.cancel(),
|
||||
|
|
|
@ -14,7 +14,7 @@ pub async fn refund(
|
|||
let state = db.get_state(swap_id).await?.try_into()?;
|
||||
|
||||
let state6 = match state {
|
||||
BobState::BtcLocked(state3) => state3.cancel(),
|
||||
BobState::BtcLocked { state3, .. } => state3.cancel(),
|
||||
BobState::XmrLockProofReceived { state, .. } => state.cancel(),
|
||||
BobState::XmrLocked(state4) => state4.cancel(),
|
||||
BobState::EncSigSent(state4) => state4.cancel(),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue