Skip to content

Commit 4b64e6e

Browse files
authored
fix(db): Precommit query (#4436)
## 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 831f985 commit 4b64e6e

File tree

3 files changed

+21
-20
lines changed

3 files changed

+21
-20
lines changed

core/lib/dal/.sqlx/query-48f5afa519b9c51a754443f82a8bc2a57e5d9f27e28ce3eb7b2067c7a832c3e5.json

Lines changed: 0 additions & 20 deletions
This file was deleted.

core/lib/dal/.sqlx/query-730a12b05a13125422773d2eebf675a40a5074221db31cf6b9aa198a4058153f.json

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

core/lib/dal/src/blocks_web3_dal.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -316,6 +316,7 @@ impl BlocksWeb3Dal<'_, '_> {
316316
miniblocks.eth_precommit_tx_id = eth_txs_history.eth_tx_id
317317
WHERE
318318
eth_txs_history.finality_status = 'finalized'
319+
AND miniblocks.eth_precommit_tx_id is not null
319320
),
320321
(
321322
SELECT MAX(number)

0 commit comments

Comments
 (0)