-
Notifications
You must be signed in to change notification settings - Fork 382
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
Refactor Bank EAH fetch method #2477
Conversation
55a9cae
to
54f5d80
Compare
Shift the check for whether *this* bank should include the EAH inside the fetch function; will avoid code duplication later
54f5d80
to
07ddd83
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@@ -5264,9 +5263,13 @@ impl Bank { | |||
self.parent_slot() < stop_slot && self.slot() >= stop_slot | |||
} | |||
|
|||
/// If the epoch accounts hash should be included in this Bank, then fetch it. If the EAH | |||
/// If the epoch accounts hash should be included in this Bank, then fetch it. If the EAH |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
😢 rip double space
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I guess that change probably should have been left out, but there are more instances of single-space than double-space in the file. I prefer single-space but don't feel too strongly about it. I do feel more strongly about consistency tho, in which case updating to single-space here gets us closer to uniformity
Given how many times I had to rebase on tip of master + push in order to get CI through, decided to push
Shift the check for whether *this* bank should include the EAH inside the fetch function; will avoid code duplication later
Summary of Changes
Shift the logic for checking if the hash should be fetched for this Bank (slot) inside the fetch method