From 1d2223c54df97aa0618078ff26bd80782f688910 Mon Sep 17 00:00:00 2001 From: patrini32 <171664803+patrini32@users.noreply.github.com> Date: Thu, 6 Jun 2024 16:48:37 +0300 Subject: [PATCH] Return accidentally deleted check for RpcVerifyAlreadyInChain --- swap/src/cli/cancel_and_refund.rs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/swap/src/cli/cancel_and_refund.rs b/swap/src/cli/cancel_and_refund.rs index d5844f78..7c990a60 100644 --- a/swap/src/cli/cancel_and_refund.rs +++ b/swap/src/cli/cancel_and_refund.rs @@ -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"); } }