Add counter for bank transaction errors (#1015)

This commit is contained in:
Pankaj Garg 2018-08-20 14:56:01 -07:00 committed by GitHub
parent 2e89999d88
commit b9ec97a30b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 0 deletions

View File

@ -391,6 +391,11 @@ impl Bank {
}
if err_count > 0 {
info!("{} errors of {} txs", err_count, err_count + tx_count);
if !self.is_leader {
inc_new_counter_info!("bank-proccess_transactions_err-validator", err_count);
} else {
inc_new_counter_info!("bank-proccess_transactions_err-leader", err_count);
}
}
self.transaction_count
.fetch_add(tx_count, Ordering::Relaxed);