Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

move hash stat to correct level for ahv to work #26649

Merged
merged 1 commit into from
Jul 18, 2022

Conversation

jeffwashington
Copy link
Contributor

@jeffwashington jeffwashington commented Jul 15, 2022

Problem

these stats are not being updated correctly since the move to accounts_hash_verifier

Summary of Changes

Fixes #

@@ -15,7 +15,6 @@ pub struct ActiveStats {
pub enum ActiveStatItem {
Clean,
Shrink,
#[allow(dead_code)]
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks unrelated to this PR. Was this intentional?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yes. this was left over and cleanup that I found and threw in.

@@ -6596,7 +6596,6 @@ impl AccountsDb {
slot: Slot,
config: &CalcAccountsHashConfig<'_>,
) -> Result<(Hash, u64), BankHashVerificationError> {
let _guard = self.active_stats.activate(ActiveStatItem::Hash);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This placement should still track all calls for hashing, yes? Is it that you don't want to track when calculating the accounts hash using the index?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we don't care about using the index. that code path only exists for debugging.

@jeffwashington jeffwashington merged commit c4d2c95 into solana-labs:master Jul 18, 2022
Lcchy pushed a commit to Bonfida/solana that referenced this pull request Jul 22, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants