Log Alice's lock tx proof receive on Bob's side

This commit is contained in:
Daniel Karzel 2021-01-11 16:58:31 +11:00
parent 2790dec6dc
commit ab9117aa4c

View File

@ -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! {