mirror of
https://github.com/comit-network/xmr-btc-swap.git
synced 2025-08-07 14:02:32 -04:00
work in review comments
This commit is contained in:
parent
c930ad84a4
commit
86290649e7
2 changed files with 8 additions and 7 deletions
|
@ -29,7 +29,7 @@ use protocol::{alice, bob, bob::Builder, SwapAmounts};
|
|||
use std::{path::PathBuf, sync::Arc};
|
||||
use structopt::StructOpt;
|
||||
use trace::init_tracing;
|
||||
use tracing::info;
|
||||
use tracing::{error, info, warn};
|
||||
use uuid::Uuid;
|
||||
|
||||
pub mod bitcoin;
|
||||
|
@ -247,11 +247,12 @@ async fn main() -> Result<()> {
|
|||
Ok((txid, _)) => {
|
||||
info!("Cancel transaction successfully published with id {}", txid)
|
||||
}
|
||||
Err(CancelError::CancelTimelockNotExpiredYet) => {
|
||||
info!("The Cancel Transaction cannot be published yet, because the timelock has not expired. Please try again later.")
|
||||
}
|
||||
Err(CancelError::CancelTimelockNotExpiredYet) => error!(
|
||||
"The Cancel Transaction cannot be published yet, \
|
||||
because the timelock has not expired. Please try again later."
|
||||
),
|
||||
Err(CancelError::CancelTxAlreadyPublished) => {
|
||||
info!("The Cancel Transaction has already been published.")
|
||||
warn!("The Cancel Transaction has already been published.")
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue