-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: added consensus types and consensus column to miniblocks table (#…
…490) To execute consensus on miniblocks we need to store extra data per miniblock.
- Loading branch information
Showing
21 changed files
with
1,205 additions
and
147 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
2 changes: 2 additions & 0 deletions
2
core/lib/dal/migrations/20231102144901_add_consensus_fields_for_miniblocks.down.sql
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 |
---|---|---|
@@ -0,0 +1,2 @@ | ||
ALTER TABLE miniblocks | ||
DROP COLUMN IF EXISTS consensus; |
2 changes: 2 additions & 0 deletions
2
core/lib/dal/migrations/20231102144901_add_consensus_fields_for_miniblocks.up.sql
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 |
---|---|---|
@@ -0,0 +1,2 @@ | ||
ALTER TABLE miniblocks | ||
ADD COLUMN consensus JSONB NULL; |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
//! Generates rust code from protobufs. | ||
fn main() { | ||
zksync_protobuf_build::Config { | ||
input_root: "src/proto".into(), | ||
proto_root: "zksync/types".into(), | ||
dependencies: vec!["::zksync_consensus_roles::proto".parse().unwrap()], | ||
protobuf_crate: "::zksync_protobuf".parse().unwrap(), | ||
is_public: true, | ||
} | ||
.generate() | ||
.expect("generate()"); | ||
} |
Oops, something went wrong.