-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat!: include state id in block signature (#478)
* chore: remove state id signature - main code building * chore(bytes): improve fixed-len serialization * test: update unit tests after state id refactor * fix(types): block ID of nil-block is nil * test(e2e) fix single tests after state id refactor * chore: state id refactor - self-review * refactor!: AppHash size MUST be 32 bytes * chore(types): stateID.AppVersion equals to Header.Version.App * doc: Document StateID encoding * chore(types): block ID IsNil should check StateID * refactor(types): change stateid.apphash to [32]byte * chore: move state ID to CanonicalVote and replace block id with hash of block id in CanonicalVote * fix(proto/types): correct handling of nil blockid in CanonicalVote * doc(consensus): update block/vote signing&verification * doc(core): revert fixed-length encoding info * chore: refactor after review feedback - WIP (tests don't build) * chore: minor fixes after state id refactor * test: update tests for state ID (except vectors / sizes) * chore: restore state ID hash in BlockID to not increase the block size * test: fix tests after state id refactor * chore: fix conflicts after merge 0.10-dev * doc(consensus): update vote/block signing with state id * refactor(types): remove unused QuorumSingsVerifier.shouldVerifyState * chore: fix typo * chore: make linter happy * refactor: move panic() from RoundState.BlockID() to Block.BlockID() * chore: minor code style changes * fix(e2e): ensure trusted light block already exists
- Loading branch information
Showing
158 changed files
with
3,261 additions
and
3,425 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.