return accidentally removed code

This commit is contained in:
patrini32 2024-06-06 16:50:53 +03:00 committed by patrini32
parent b18c874b3e
commit 4b5c54e3e4

View File

@ -83,6 +83,7 @@ pub async fn cancel(
return Ok((txid, state));
}
if let Ok(error_code) = parse_rpc_error_code(&err) {
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) {