Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(state-keeper): Refactor persistence in
StateKeeper
(#1411)
## What ❔ - Splits off miniblock and L1 batch persistence from `StateKeeperIO` into a separate trait. - Moves tracking current miniblock / L1 batch number from `StateKeeperIO` to the state keeper. ## Why ❔ - Simplifies further changes to the persistence logic, e.g. toggling saving protective reads. - Can be used as a building block for generic retrospective L1 batch execution. ## Checklist - [x] PR title corresponds to the body of PR (we generate changelog entries from PRs). - [x] Tests for the changes have been added / updated. - [x] Documentation comments have been added / updated. - [x] Code has been formatted via `zk fmt` and `zk lint`. - [x] Spellcheck has been run via `zk spellcheck`. - [x] Linkcheck has been run via `zk linkcheck`.
- Loading branch information
Showing
36 changed files
with
1,663 additions
and
1,488 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
34 changes: 0 additions & 34 deletions
34
...lib/dal/.sqlx/query-2757b30c4641a346eb0226c706223efc18e51e6d4092188e081f4fafe92fe0ef.json
This file was deleted.
Oops, something went wrong.
22 changes: 22 additions & 0 deletions
22
...lib/dal/.sqlx/query-d50555b3b7a1feadd34a2fe90b205ed6a7335a7092c7dc2b81337535e4d489d5.json
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 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.