Skip to content

Commit 42c3f0f

Browse files
authored
feat: Improve proving networks setup (#4563)
## What ❔ * Add `attempts` column for submitting validation results. Initially the setup worked the way that validation results are being sent with retries, but without any measuring of attempts - so they are being sent until accepted. In some cases it gets the system stuck - like change of contracts or some other issues. So this PR adds `attempts` and metrics for reached max attempts(configurable) - for which we can configure alert and react. * Metrics `proven_batches` and `acknowledged_batches` were reworked, so they emit the latest proven/acknowledged batch instead of total amount. * `failed_to_send_txs` metric was removed in favor of `reached_max_attempts` metric. * New metrics added: - `submitter_address` - to track the address of the submitter in Grafana, for easier accesibility - `submitter_balance` - to track/set alerts on balance of submitter - `contract_address` - address of proof manager contract - to be able to track the contract's state from Grafana * Crypto dependencies bumped - fixes the issue with verifier panicking if receiving wrong proof. We don't want to crash the component in case the submitted proof was incorrect * Add filtering events by chain ID of current network - so we won't receive proofs/events from other networks. ## Why ❔ This PR improves a few things in proving networks setup as preparation to going in production. ## 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 0c35b20 commit 42c3f0f

19 files changed

+333
-192
lines changed

core/Cargo.lock

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

core/Cargo.toml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -251,22 +251,22 @@ rust-eigenda-signers = "0.1.6"
251251
# However, for the historical version of protocol crates, we have lax requirements. Otherwise,
252252
# Bumping a crypto dependency like `boojum` would require us to republish all the historical packages.
253253

254-
circuit_encodings = "=0.153.3"
255-
circuit_sequencer_api = "=0.153.3"
256-
circuit_definitions = "=0.153.3"
257-
crypto_codegen = { package = "zksync_solidity_vk_codegen", version = "=0.32.5" }
254+
circuit_encodings = "=0.153.4"
255+
circuit_sequencer_api = "=0.153.4"
256+
circuit_definitions = "=0.153.4"
257+
crypto_codegen = { package = "zksync_solidity_vk_codegen", version = "=0.32.6" }
258258

259-
kzg = { package = "zksync_kzg", version = "=0.153.3" }
259+
kzg = { package = "zksync_kzg", version = "=0.153.4" }
260260

261261
zk_evm_1_3_1 = { package = "zk_evm", version = "0.131.0-rc.2" }
262262
zk_evm_1_3_3 = { package = "zk_evm", version = "0.133" }
263263
zk_evm_1_4_0 = { package = "zk_evm", version = "0.140" }
264264
zk_evm_1_4_1 = { package = "zk_evm", version = "0.141" }
265265
zk_evm_1_5_0 = { package = "zk_evm", version = "=0.151.8" }
266-
zk_evm_1_5_2 = { package = "zk_evm", version = "=0.153.3" }
266+
zk_evm_1_5_2 = { package = "zk_evm", version = "=0.153.4" }
267267

268-
fflonk = "=0.32.5"
269-
bellman = { package = "zksync_bellman", version = "=0.32.5" }
268+
fflonk = "=0.32.6"
269+
bellman = { package = "zksync_bellman", version = "=0.32.6" }
270270

271271
# New VM
272272
zksync_vm2 = "=0.5.0"

core/lib/dal/.sqlx/query-313d705c4fc583ff3a9dea070cb2e46eda54492686bb2a16b14d81817d9fec69.json

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

core/lib/dal/.sqlx/query-c8cbd638e7af693afaaa822e66ed481d0ad30f19ea746a62db0d0e785dbbccdd.json

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

0 commit comments

Comments
 (0)