Skip to content
This repository has been archived by the owner on Dec 17, 2024. It is now read-only.

Commit

Permalink
add some trace when an error occurs during validation (#156)
Browse files Browse the repository at this point in the history
  • Loading branch information
musitdev authored Mar 20, 2024
1 parent 92ade6d commit b20da9e
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions crates/node/src/txvalidation/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -231,12 +231,16 @@ pub async fn spawn_event_loop(
}
}
Some(Ok((res, callback))) = validation_okresult_futures.next() => {
if let Err(ref err) = res {
tracing::error!("Error during validate save tx process_event :{err}");
}
if let Some(callback) = callback {
// Forget the result because if the RPC connection is closed the send can fail.
let _ = callback.send(res);
}
}
Some((res, callback)) = validation_errresult_futures.next() => {
tracing::error!("Error during validate tx process_event :{res}");
if let Some(callback) = callback {
// Forget the result because if the RPC connection is closed the send can fail.
let _ = callback.send(Err(res));
Expand Down

0 comments on commit b20da9e

Please sign in to comment.