Skip to content

Commit 7edd4ea

Browse files
authored
fix(eth-proof-manager): batch fallbacking (#4419)
## What ❔ This PR fixes wrong logic of fallbacking the batch in case the proof request was acknowledged but not proven. ## 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 157045b commit 7edd4ea

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

core/lib/dal/.sqlx/query-c86516c35fd6637fcceb974596da50a699d464c1d49501ac2ab87d6ee456229f.json renamed to core/lib/dal/.sqlx/query-5f07c7135ab82b447a5f0184b35dd584b3dd66e2a1e3d61e4a7cd28f54cd4d8d.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/eth_proof_manager_dal.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -283,7 +283,7 @@ impl EthProofManagerDal<'_, '_> {
283283
(status = $2 AND submit_proof_request_tx_sent_at < NOW() - $3::INTERVAL)
284284
OR (
285285
status = $4
286-
AND validated_proof_request_tx_sent_at < NOW() - $5::INTERVAL
286+
AND submit_proof_request_tx_sent_at < NOW() - $5::INTERVAL
287287
)
288288
OR (status = $6 AND proof_validation_result IS false)
289289
OR (status = $7 AND updated_at < NOW() - $8::INTERVAL)

0 commit comments

Comments
 (0)