Save state for Bob at specific points in the swap

This commit is contained in:
rishflab 2020-11-02 16:00:10 +11:00
parent 5cb2f451d0
commit ea08778b2f
6 changed files with 82 additions and 7 deletions

View file

@ -31,6 +31,7 @@ use crate::{
transport::SwapTransport,
TokioExecutor,
},
storage::Database,
SwapAmounts, PUNISH_TIMELOCK, REFUND_TIMELOCK,
};
use xmr_btc::{
@ -43,6 +44,7 @@ use xmr_btc::{
pub async fn swap(
bitcoin_wallet: Arc<bitcoin::Wallet>,
monero_wallet: Arc<monero::Wallet>,
_db: Database<crate::storage::Alice>,
listen: Multiaddr,
transport: SwapTransport,
behaviour: Alice,