mirror of
https://github.com/comit-network/xmr-btc-swap.git
synced 2025-01-26 07:16:06 -05:00
Store monero wallet at certain states
This commit is contained in:
parent
e4410bcf44
commit
d73dd56974
@ -45,8 +45,6 @@ where
|
|||||||
.await?;
|
.await?;
|
||||||
}
|
}
|
||||||
|
|
||||||
swap.monero_wallet.store().await?;
|
|
||||||
|
|
||||||
Ok(current_state)
|
Ok(current_state)
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -148,6 +146,8 @@ where
|
|||||||
)
|
)
|
||||||
})?;
|
})?;
|
||||||
|
|
||||||
|
monero_wallet.store().await?;
|
||||||
|
|
||||||
AliceState::XmrLocked {
|
AliceState::XmrLocked {
|
||||||
monero_wallet_restore_blockheight,
|
monero_wallet_restore_blockheight,
|
||||||
transfer_proof,
|
transfer_proof,
|
||||||
@ -354,6 +354,8 @@ where
|
|||||||
)
|
)
|
||||||
.await?;
|
.await?;
|
||||||
|
|
||||||
|
monero_wallet.store().await?;
|
||||||
|
|
||||||
AliceState::XmrRefunded
|
AliceState::XmrRefunded
|
||||||
}
|
}
|
||||||
AliceState::BtcPunishable {
|
AliceState::BtcPunishable {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user