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

send: construct PreBlock instead of PreHeader to create PreCommit #128

Merged
merged 1 commit into from
Aug 30, 2024

Conversation

AnnaShaleva
Copy link
Member

PreHeader is not enough to create PreCommit because PreCommit requires the whole set of transactions to be available for PreCommit data calculations. This bug leads to the fact that Primary node can't properly construct valid PreCommit message because block's transactions are not yet filled by dBFT by this moment.

Required by https://github.com/bane-labs/go-ethereum/pull/287.

Draft because I need to carefully ensure that nothing is broken by this change for non-primary nodes. I checked that CreatePreBlock is called only when all transactions are available (as expected).

PreHeader is not enough to create PreCommit because PreCommit requires the
whole set of transactions to be available for PreCommit data
calculations. This bug leads to the fact that Primary node can't
properly construct valid PreCommit message because block's transactions are not
yet filled by dBFT by this moment.

Signed-off-by: Anna Shaleva <[email protected]>
@AnnaShaleva AnnaShaleva added the bug Something isn't working label Aug 28, 2024
@AnnaShaleva AnnaShaleva added this to the v0.3.1 milestone Aug 28, 2024
Copy link

codecov bot commented Aug 28, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 59.47%. Comparing base (b129031) to head (3b0a522).
Report is 2 commits behind head on master.

Additional details and impacted files
@@           Coverage Diff           @@
##           master     #128   +/-   ##
=======================================
  Coverage   59.47%   59.47%           
=======================================
  Files          32       32           
  Lines        1821     1821           
=======================================
  Hits         1083     1083           
  Misses        659      659           
  Partials       79       79           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@AnnaShaleva AnnaShaleva marked this pull request as ready for review August 30, 2024 13:21
@AnnaShaleva
Copy link
Member Author

OK, it should be fine.

@roman-khimov roman-khimov merged commit d574d48 into master Aug 30, 2024
12 checks passed
@roman-khimov roman-khimov deleted the fix-preblock-construction branch August 30, 2024 19:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants