-
Notifications
You must be signed in to change notification settings - Fork 316
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Add log of blocks proposed and split pending/proven (#7635)
Fixes #7615. Adds a list of "BlockLog"s what we have within the 🐢 team talked about just as log for more generic consensus notation, and then have two values to address whereto the pending and the proven is accounted for. Add extra requirements to the `submitProof` function to ensure that proofs are actually linked to the blocks that are in the pending log. If all constraints are passed, will mark the block as proven (but not instantly move the tip forward). Introduce a `progressState` function which we execute at every proof submission that will try to progress the proven tip as far as possible (as long as the next block is proven we continue). This allow us to deal with non-sequential proving. - Also renames the fixtures to be block 1 and 2 instead of 0, 1 as it makes it much easier to reason about when the genesis block is actually already in the chain. - Changed a few wrongly ordered error messages.
- Loading branch information
Showing
15 changed files
with
453 additions
and
246 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
Oops, something went wrong.