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

Fixup log of Epoch Accounts Hash when freezing bank #27688

Conversation

brooksprumo
Copy link
Contributor

Problem

During testing, I found that the bank frozen log printed the EAH more than it was supposed to.

Since the EAH is not cleared in Bank (but rather in set_root()), once the EAH is saved by AHV, it'll be Some, and every bank that is frozen since will output the EAH. I don't think that is the desired behavior. I believe the behavior we want is to only log the EAH when it has been included in the bank's hash.

Summary of Changes

Conditionally log EAH.

@brooksprumo brooksprumo self-assigned this Sep 9, 2022
@brooksprumo brooksprumo marked this pull request as ready for review September 9, 2022 17:03
Copy link
Contributor

@jeffwashington jeffwashington left a comment

Choose a reason for hiding this comment

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

lgtm

@brooksprumo brooksprumo merged commit fc396f9 into solana-labs:master Sep 9, 2022
@brooksprumo brooksprumo deleted the epoch-accounts-hash/fixup-bank-log branch September 9, 2022 20:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Development

Successfully merging this pull request may close these issues.

2 participants