-
Notifications
You must be signed in to change notification settings - Fork 4.5k
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
Only add hashes for completed blocks to recent blockhashes #24389
Conversation
74f5ab2
to
1ca2623
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.
lgtm! rare occurrence that we can fix anything this low-level so cleanly
1ca2623
to
59c9326
Compare
@t-nelson do you mind looking this over again? |
Codecov Report
@@ Coverage Diff @@
## master #24389 +/- ##
===========================================
+ Coverage 70.0% 82.0% +11.9%
===========================================
Files 36 592 +556
Lines 2255 163847 +161592
Branches 322 0 -322
===========================================
+ Hits 1580 134357 +132777
- Misses 560 29490 +28930
+ Partials 115 0 -115 |
@mvines could you take a look at the program-test changes? |
86d1557
to
c9f5a44
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.
still lgtm!
c9f5a44
to
2163f5a
Compare
…bs#24389) * Only add hashes for completed blocks to recent blockhashes * feedback
…bs#24389) * Only add hashes for completed blocks to recent blockhashes * feedback
…bs#24389) * Only add hashes for completed blocks to recent blockhashes * feedback
does this affect replayability, i.e. if a previous tx used a blockhash that is now considered not valid? |
Problem
As demonstrated in #24242, the recent blockhashes queue tracks hashes for skipped blocks. The recent blockhash queue should only be storing hashes for produced blocks.
Summary of Changes
When registering ticks at slot boundaries, don't register the poh hash in the recent blockhash queue until all ticks have been completed for a bank.
some context for the justification of this change: #23949 (comment)
Fixes #24387
Feature Gate Issue: #24388