Skip to content
This repository has been archived by the owner on Jan 22, 2025. It is now read-only.

Commit

Permalink
Log the number of accounts each 250k txes (#1178)
Browse files Browse the repository at this point in the history
  • Loading branch information
sakridge authored Sep 11, 2018
1 parent 1c17c6d commit 9d80eef
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/bank.rs
Original file line number Diff line number Diff line change
Expand Up @@ -494,6 +494,10 @@ impl Bank {
);
}
}
let cur_tx_count = self.transaction_count.load(Ordering::Relaxed);
if ((cur_tx_count + tx_count) & !(262144 - 1)) > cur_tx_count & !(262144 - 1) {
info!("accounts.len: {}", accounts.len());
}
self.transaction_count
.fetch_add(tx_count, Ordering::Relaxed);
res
Expand Down

0 comments on commit 9d80eef

Please sign in to comment.