zksync-era
zksync-era copied to clipboard
feat(state-keeper): Refactor persistence in `StateKeeper`
What ❔
- Splits off miniblock and L1 batch persistence from
StateKeeperIOinto a separate trait. - Moves tracking current miniblock / L1 batch number from
StateKeeperIOto 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.
- [ ] Documentation comments have been added / updated.
- [x] Code has been formatted via
zk fmtandzk lint. - [x] Spellcheck has been run via
zk spellcheck. - [x] Linkcheck has been run via
zk linkcheck.