|
|
@ -29,7 +29,7 @@ use protocol::{alice, bob, bob::Builder, SwapAmounts};
|
|
|
|
use std::{path::PathBuf, sync::Arc};
|
|
|
|
use std::{path::PathBuf, sync::Arc};
|
|
|
|
use structopt::StructOpt;
|
|
|
|
use structopt::StructOpt;
|
|
|
|
use trace::init_tracing;
|
|
|
|
use trace::init_tracing;
|
|
|
|
use tracing::info;
|
|
|
|
use tracing::{error, info, warn};
|
|
|
|
use uuid::Uuid;
|
|
|
|
use uuid::Uuid;
|
|
|
|
|
|
|
|
|
|
|
|
pub mod bitcoin;
|
|
|
|
pub mod bitcoin;
|
|
|
@ -247,11 +247,12 @@ async fn main() -> Result<()> {
|
|
|
|
Ok((txid, _)) => {
|
|
|
|
Ok((txid, _)) => {
|
|
|
|
info!("Cancel transaction successfully published with id {}", txid)
|
|
|
|
info!("Cancel transaction successfully published with id {}", txid)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
Err(CancelError::CancelTimelockNotExpiredYet) => {
|
|
|
|
Err(CancelError::CancelTimelockNotExpiredYet) => error!(
|
|
|
|
info!("The Cancel Transaction cannot be published yet, because the timelock has not expired. Please try again later.")
|
|
|
|
"The Cancel Transaction cannot be published yet, \
|
|
|
|
}
|
|
|
|
because the timelock has not expired. Please try again later."
|
|
|
|
|
|
|
|
),
|
|
|
|
Err(CancelError::CancelTxAlreadyPublished) => {
|
|
|
|
Err(CancelError::CancelTxAlreadyPublished) => {
|
|
|
|
info!("The Cancel Transaction has already been published.")
|
|
|
|
warn!("The Cancel Transaction has already been published.")
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|