|
|
|
@ -96,7 +96,7 @@ impl SwapFactory {
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
pub async fn new_swap_as_alice(&self, swap_amounts: SwapAmounts) -> Result<(Swap, EventLoop)> {
|
|
|
|
|
pub async fn new_swap(&self, swap_amounts: SwapAmounts) -> Result<(Swap, EventLoop)> {
|
|
|
|
|
let initial_state = init_alice_state(
|
|
|
|
|
swap_amounts.btc,
|
|
|
|
|
swap_amounts.xmr,
|
|
|
|
@ -127,7 +127,7 @@ impl SwapFactory {
|
|
|
|
|
))
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
pub async fn recover_alice_from_db(&self) -> Result<(Swap, EventLoop)> {
|
|
|
|
|
pub async fn resume(&self) -> Result<(Swap, EventLoop)> {
|
|
|
|
|
// reopen the existing database
|
|
|
|
|
let db = Database::open(self.db_path.clone().as_path())?;
|
|
|
|
|
|
|
|
|
|