diff --git a/chain/jsonrpc/src/lib.rs b/chain/jsonrpc/src/lib.rs index 20045fe1ee7..ddedbbd3f84 100644 --- a/chain/jsonrpc/src/lib.rs +++ b/chain/jsonrpc/src/lib.rs @@ -628,15 +628,12 @@ impl JsonRpcHandler { .map_err(|_| { metrics::RPC_TIMEOUT_TOTAL.inc(); tracing::warn!( - target: "jsonrpc", "Timeout: tx_status_fetch method. tx_info {:?} fetch_receipt {:?}", + target: "jsonrpc", "Timeout: tx_status_fetch method. tx_info {:?} fetch_receipt {:?} result {:?}", tx_info, fetch_receipt, + tx_status_result ); - if let Err(error) = tx_status_result { - error - } else { - near_jsonrpc_primitives::types::transactions::RpcTransactionError::TimeoutError - } + near_jsonrpc_primitives::types::transactions::RpcTransactionError::TimeoutError })? } diff --git a/core/primitives/src/views.rs b/core/primitives/src/views.rs index ade64f5a0cd..a74150bda7b 100644 --- a/core/primitives/src/views.rs +++ b/core/primitives/src/views.rs @@ -1690,7 +1690,7 @@ impl ExecutionOutcomeWithIdView { self.outcome.to_hashes(self.id) } } -#[derive(Clone)] +#[derive(Clone, Debug)] pub struct TxStatusView { pub execution_outcome: Option, pub status: TxExecutionStatus,