Add erroring tx to unexpected validator error logging (#4314)
* Add tx logging to error * Add tx logging to unexpected validator errors
This commit is contained in:
parent
7bfb60f82e
commit
b3e45fd6b7
|
@ -36,16 +36,16 @@ fn par_execute_entries(
|
|||
MAX_RECENT_BLOCKHASHES,
|
||||
);
|
||||
let mut first_err = None;
|
||||
for r in results {
|
||||
for (r, tx) in results.iter().zip(e.transactions.iter()) {
|
||||
if let Err(ref e) = r {
|
||||
if first_err.is_none() {
|
||||
first_err = Some(r.clone());
|
||||
}
|
||||
if !Bank::can_commit(&r) {
|
||||
warn!("Unexpected validator error: {:?}", e);
|
||||
warn!("Unexpected validator error: {:?}, tx: {:?}", e, tx);
|
||||
datapoint!(
|
||||
"validator_process_entry_error",
|
||||
("error", format!("{:?}", e), String)
|
||||
("error", format!("error: {:?}, tx: {:?}", e, tx), String)
|
||||
);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue