Skip to content

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 bane-labs/go-ethereum#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 <shaleva.ann@nspcc.ru>
@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
@codecov
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
@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.

3 participants