Skip to content

Commit 8c0e689

Browse files
authored
fix(state-keeper): Do not seal based on interop roots for v28 (#4376)
## What ❔ <!-- What are the changes this PR brings about? --> <!-- Example: This PR adds a PR template to the repo. --> <!-- (For bigger PRs adding more context is appreciated) --> ## Why ❔ <!-- Why are these changes done? What goal do they contribute to? What are the principles behind them? --> <!-- The `Why` has to be clear to non-Matter Labs entities running their own ZK Chain --> <!-- Example: PR templates ensure PR reviewers, observers, and future iterators are in context about the evolution of repos. --> ## Is this a breaking change? - [ ] Yes - [ ] No ## Operational changes <!-- Any config changes? Any new flags? Any changes to any scripts? --> <!-- Please add anything that non-Matter Labs entities running their own ZK Chain may need to know --> ## Checklist <!-- Check your PR fulfills the following items. --> <!-- For draft PRs check the boxes as you complete them. --> - [ ] PR title corresponds to the body of PR (we generate changelog entries from PRs). - [ ] Tests for the changes have been added / updated. - [ ] Documentation comments have been added / updated. - [ ] Code has been formatted via `zkstack dev fmt` and `zkstack dev lint`. Signed-off-by: Danil <[email protected]>
1 parent bd55907 commit 8c0e689

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

core/node/state_keeper/src/seal_criteria/criteria/interop_roots.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,10 @@ impl SealCriterion for InteropRootsCriterion {
1818
_tx_data: &SealData,
1919
protocol_version: ProtocolVersionId,
2020
) -> SealResolution {
21+
if protocol_version.is_pre_interop_fast_blocks() {
22+
// In pre-interop fast blocks, we don't have interop roots, so we never seal based on them.
23+
return SealResolution::NoSeal;
24+
}
2125
let max_interop_roots_in_batch =
2226
get_bootloader_max_interop_roots_in_batch(protocol_version.into());
2327
assert!(

0 commit comments

Comments
 (0)