Adds docs to non_vote_transaction_count_since_restart() (#32886)

This commit is contained in:
Brooks 2023-08-18 11:37:44 -04:00 committed by GitHub
parent 7d203722cb
commit 1e8f7b5d1e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 0 deletions

View File

@ -6920,6 +6920,10 @@ impl Bank {
self.transaction_count.load(Relaxed)
}
/// Returns the number of non-vote transactions processed without error
/// since the most recent boot from snapshot or genesis.
/// This value is not shared though the network, nor retained
/// within snapshots, but is preserved in `Bank::new_from_parent`.
pub fn non_vote_transaction_count_since_restart(&self) -> u64 {
self.non_vote_transaction_count_since_restart.load(Relaxed)
}