forked from matter-labs/zksync-era
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: block revert support for consensus component (matter-labs#1213)
Reverting blocks in the main node translates to a hard fork of the consensus blockchain. This means that every time block reverter is executed, the state of the consensus has to be reset (aka forked). To achieve that a `Genesis` of the consensus is introduced. Among other things, it specifies the number of the fork (incremented at every forking) and the miniblock number that the fork should start from (set to the last sealed miniblock at the time of forking). External node learns the current Genesis from the main node via jsonrpc (eventually Genesis should be moved to L1 contract, so that hard forks are managed by governance). Consensus doesn't support yet synchronization of blocks before the Genesis first block, therefore for now external node is using jsonrpc for syncing the blocks before genesis first block. Fixes BFT-420
- Loading branch information
Showing
60 changed files
with
2,012 additions
and
1,825 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -915,3 +915,4 @@ balancer | |
lookups | ||
stateful | ||
WIP | ||
p2p |
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.