-
Notifications
You must be signed in to change notification settings - Fork 308
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
Remove the PartSetHeader from VoteSetMaj23, VoteSetBits, and state.State #479
Conversation
Codecov Report
@@ Coverage Diff @@
## master #479 +/- ##
==========================================
- Coverage 62.86% 62.80% -0.06%
==========================================
Files 263 263
Lines 32499 32455 -44
==========================================
- Hits 20430 20383 -47
- Misses 10525 10531 +6
+ Partials 1544 1541 -3
|
Is the proto breaking CI an issue? https://github.com/celestiaorg/lazyledger-core/pull/479/checks?check_run_id=3192469663 |
it only indicates that the protos were changed (and it's a breaking change). |
@@ -142,7 +142,7 @@ func TestValidateBlockCommit(t *testing.T) { | |||
wrongHeightVote, err := types.MakeVote( | |||
height, | |||
state.LastBlockID, | |||
state.LastPartSetHeader, | |||
types.PartSetHeader{}, |
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 know the title of the PR doesn't include Vote
s proper, but is there a reason not to remove it from votes too?
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.
That's a great question! The next step in removing the PartSetHeader will be removing from Vote and Commit. Unfortunately, that will include more meaningful changes to how the consensus reactor passes data around, and I figured I should get as many easily isolated changes out of the way as possible to make those more complex changes easier to review.
Co-authored-by: John Adler <[email protected]>
* Revert "Remove the PartSetHeader from VoteSetMaj23, VoteSetBits, and state.State (#479)" This reverts commit 3ba47c2. * Revert "Stop Signing over the `PartSetHeader` for Votes and remove it from the `Header` (#457)" This reverts commit 818be04. * Revert "Decouple PartSetHeader from BlockID (#441)" This reverts commit 9d4265d.
* Revert "Remove the PartSetHeader from VoteSetMaj23, VoteSetBits, and state.State (#479)" This reverts commit 3ba47c2. * Revert "Stop Signing over the `PartSetHeader` for Votes and remove it from the `Header` (#457)" This reverts commit 818be04. * Revert "Decouple PartSetHeader from BlockID (#441)" This reverts commit 9d4265d. * Revert "Save and load block data using IPFS (#374)" This reverts commit 8da1644. * fix merge error * Revert "Add the ipfs dag api object in Blockstore (#356)" and get rid of embedded ipfs objects This reverts commit 40acb17. * remove ipfs node provider from new node * stop init ipfs repos * remove IPFS node config * clean up remaining ipfs stuff
Description
This PR is the next step in #418 in removing the PartSetHeader as much as possible, as it removes it from VoteSetMaj23, VoteSetBits, and state.State. Once again, I was careful that I didn't actually change anything meaningful, and only removed the PartSetHeader from the mentioned structs.
I think that removing the PartSetHeader further will require slightly more meaningful changes, so I figured I try to get as many of the cumbersome but easy changes out of the way as possible.