mirror of
https://github.com/comit-network/xmr-btc-swap.git
synced 2025-04-20 07:56:05 -04:00
Return accidentally deleted check for RpcVerifyAlreadyInChain
This commit is contained in:
parent
8ac04e0d16
commit
1d2223c54d
@ -83,8 +83,9 @@ pub async fn cancel(
|
||||
return Ok((txid, state));
|
||||
}
|
||||
if let Ok(error_code) = parse_rpc_error_code(&err) {
|
||||
if error_code == i64::from(RpcErrorCode::RpcVerifyError) {
|
||||
tracing::debug!(%error_code, "parse rpc error");
|
||||
if error_code == i64::from(RpcErrorCode::RpcVerifyAlreadyInChain) {
|
||||
tracing::info!("Cancel transaction has already been confirmed on chain");
|
||||
} else if error_code == i64::from(RpcErrorCode::RpcVerifyError) {
|
||||
tracing::info!("General error trying to submit cancel transaction");
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user