mirror of
https://github.com/comit-network/xmr-btc-swap.git
synced 2024-10-01 01:45:40 -04:00
Log Alice's lock tx proof receive on Bob's side
This commit is contained in:
parent
2790dec6dc
commit
ab9117aa4c
@ -3,7 +3,7 @@ use async_recursion::async_recursion;
|
|||||||
use rand::{CryptoRng, RngCore};
|
use rand::{CryptoRng, RngCore};
|
||||||
use std::sync::Arc;
|
use std::sync::Arc;
|
||||||
use tokio::select;
|
use tokio::select;
|
||||||
use tracing::info;
|
use tracing::{debug, info};
|
||||||
use uuid::Uuid;
|
use uuid::Uuid;
|
||||||
|
|
||||||
use crate::{
|
use crate::{
|
||||||
@ -153,8 +153,12 @@ where
|
|||||||
select! {
|
select! {
|
||||||
msg2 = msg2_watcher => {
|
msg2 = msg2_watcher => {
|
||||||
|
|
||||||
|
let msg2 = msg2?;
|
||||||
|
info!("Received XMR lock transaction transfer proof from Alice, watching for transfer confirmations");
|
||||||
|
debug!("Transfer proof: {:?}", msg2.tx_lock_proof);
|
||||||
|
|
||||||
let xmr_lock_watcher = state3.clone()
|
let xmr_lock_watcher = state3.clone()
|
||||||
.watch_for_lock_xmr(monero_wallet.as_ref(), msg2?, monero_wallet_restore_blockheight.height);
|
.watch_for_lock_xmr(monero_wallet.as_ref(), msg2, monero_wallet_restore_blockheight.height);
|
||||||
let cancel_timelock_expires = state3.wait_for_cancel_timelock_to_expire(bitcoin_wallet.as_ref());
|
let cancel_timelock_expires = state3.wait_for_cancel_timelock_to_expire(bitcoin_wallet.as_ref());
|
||||||
|
|
||||||
select! {
|
select! {
|
||||||
|
Loading…
Reference in New Issue
Block a user