-
Notifications
You must be signed in to change notification settings - Fork 39
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: implemented BlockHeader (BFT-357) (#12)
Implemented https://www.notion.so/matterlabs/5d238e08fbed476b8550f697d9c39df6?v=51a4bffaba05499e8ca11bd625fff54a&p=16c93154366c4a3994457b44043dea71&pm=s with some differences. Summary of changes: * Replaced Block with BlockHeader with just a hash of the payload * Made consensus messages include the whole BlockHeader, rather than just hash (since it is small, once we moved the payload out) * Introduced a strongly typed Payload * Added protocol_version to the BlockHeader (and relevant checks to the consensus) - currently hardcoded to 0 Minor fixes: * split the leader::Error and replica::Error into per-method errors (since the error types returned by each are disjoint) * relaxed the "stringly" typed assertions from sync_block tests (if needed they should use strongly typed errors instead) * added "size" to the protobuf encoding of BitVec, so that the encoded BitVec value is context free --------- Co-authored-by: Bruno França <[email protected]>
- Loading branch information
1 parent
fe38f3d
commit 9735904
Showing
46 changed files
with
933 additions
and
850 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -18,13 +18,13 @@ jobs: | |
conformance: | ||
runs-on: [ubuntu-22.04-github-hosted-16core] | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: actions/checkout@v4 | ||
with: | ||
path: "this" | ||
- uses: actions/checkout@v3 | ||
- uses: actions/checkout@v4 | ||
with: | ||
repository: "protocolbuffers/protobuf" | ||
ref: "main" | ||
ref: "v24.4" | ||
path: "protobuf" | ||
- uses: mozilla-actions/[email protected] | ||
- name: build test | ||
|
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
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 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
Oops, something went wrong.