-
Notifications
You must be signed in to change notification settings - Fork 534
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
Fix hash calculation for proposal for go-ibft's update #1065
Conversation
This reverts commit b527ecb.
Does it make sense to address these errors before the review process? Error: consensus/ibft/messages.go:27:30: undefined: proto.ProposedBlock
Error: consensus/ibft/messages.go:93:22: undefined: proto.ProposedBlock
Error: consensus/ibft/verifier.go:185:63: undefined: proto.ProposedBlock
Error: consensus/ibft/ibft.go:199:3: cannot use i (variable of type *backendIBFT) as type core.Backend in argument to newIBFT: |
Need a release in go-ibft side because this PR includes a change based on a open PR in go-ibft |
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
Codecov Report
@@ Coverage Diff @@
## develop #1065 +/- ##
===========================================
+ Coverage 53.85% 54.09% +0.23%
===========================================
Files 132 132
Lines 17596 17704 +108
===========================================
+ Hits 9477 9577 +100
- Misses 7473 7490 +17
+ Partials 646 637 -9
📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more |
Description
As described in 0xPolygon/go-ibft#55, hash calculation needs to update for IBFT2.0 consensus.
In particular, IBFT backend must generate hash for IBFT consensus from tuple of
(EthereumBlock, round)
.This PR changes hash calculation add adds new field for round in IBFT Extra.
Changes include
Breaking changes
Please complete this section if any breaking changes have been made, otherwise delete it
Checklist
Testing
Manual tests
Please complete this section if you ran manual tests for this functionality, otherwise delete it
Documentation update
Please link the documentation update PR in this section if it's present, otherwise delete it
Additional comments
Please post additional comments in this section if you have them, otherwise delete it