Skip to content

Commit 831f985

Browse files
authored
feat: interop roots batch ordering (#4434)
## 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`.
1 parent 9a6ff16 commit 831f985

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

core/lib/dal/.sqlx/query-a5161dd288126ef50822e6093161921a7e8c0a9ee4373c69945ed4820dba4fd3.json renamed to core/lib/dal/.sqlx/query-518f3cc6fa2dba93f2cf341502e41ebf67495b5956b1c40412f1e4c30b8263e0.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

core/lib/dal/src/interop_roots_dal.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -265,7 +265,7 @@ impl InteropRootDal<'_, '_> {
265265
JOIN miniblocks
266266
ON interop_roots.processed_block_number = miniblocks.number
267267
WHERE l1_batch_number = $1
268-
ORDER BY chain_id, dependency_block_number DESC;
268+
ORDER BY chain_id, processed_block_number, dependency_block_number DESC;
269269
"#,
270270
i64::from(batch_number.0)
271271
)

0 commit comments

Comments
 (0)