Add finalized/tentative state concepts to the state handler #1086
Labels
A0-core
Affects a core part
A3-sidechain
B1-releasenotes
E3-hardmerge
PR introduces a lot changes in a lot of files. Requires some effort to merge or rebase to.
F8-enhancement
New feature or request
As part of sidechain finalization, epic #685 and issue #855 and in preparation for #687, we need to introduce the concept of a finalized and a tentative state into our state handler.
The state handler will hold the last finalized state and the tentative state, upon which new sidechain blocks are proposed.
Instead of writing a state snapshot to file for every mutation, we should now change to write only finalized state snapshots. This will be used by #687. In a first step though, we just prepare the implementation and finalize each sidechain block (because we don't have any tracking or acting upon finalization yet).
HandleState
trait to differentiate betweenfinalized
andtentative
stateThe text was updated successfully, but these errors were encountered: