(cherry picked from commit 770d3d383c
)
Co-authored-by: sakridge <sakridge@gmail.com>
This commit is contained in:
@ -1599,9 +1599,18 @@ impl AccountsDB {
|
|||||||
}
|
}
|
||||||
|
|
||||||
scan.stop();
|
scan.stop();
|
||||||
debug!("{}", scan);
|
let hash_total = hashes.len();
|
||||||
|
|
||||||
Ok(Self::accumulate_account_hashes(hashes))
|
let mut accumulate = Measure::start("accumulate");
|
||||||
|
let accumulated_hash = Self::accumulate_account_hashes(hashes);
|
||||||
|
accumulate.stop();
|
||||||
|
datapoint_info!(
|
||||||
|
"update_accounts_hash",
|
||||||
|
("accounts_scan", scan.as_us(), i64),
|
||||||
|
("hash_accumulate", accumulate.as_us(), i64),
|
||||||
|
("hash_total", hash_total, i64),
|
||||||
|
);
|
||||||
|
Ok(accumulated_hash)
|
||||||
}
|
}
|
||||||
|
|
||||||
pub fn get_accounts_hash(&self, slot: Slot) -> Hash {
|
pub fn get_accounts_hash(&self, slot: Slot) -> Hash {
|
||||||
|
Reference in New Issue
Block a user