Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(Prover CLI): status l1 command #1706

Merged
merged 73 commits into from
May 8, 2024
Merged

feat(Prover CLI): status l1 command #1706

merged 73 commits into from
May 8, 2024

Conversation

ColoCarletti
Copy link
Contributor

@ColoCarletti ColoCarletti commented Apr 16, 2024

What ❔

This PR adds a new command to the prover CLI: 'status l1'. This command retrieve information about the state of the batches sent to L1 and compare the contract hashes in L1 with those stored in the prover database.

To run the command:

zk f cargo run -- status l1

Example output:

 ====== L1 Status ======
State keeper: First batch: 0, recent batch: 10
L1 state: block verified: 7, block committed: 9
Eth sender is 1 behind. Last block committed: 9. Most recent sealed state keeper batch: 10.
 -----------------------
Verifier key hash matches: 0x063c9c1e9d39fc0b1633c78a49f1905s65ee0982ad96d97ef7fe3d4f1f1a72c7
 -----------------------
Verification node hash in DB differs from the one in contract.
Contract hash: 0x1186ec268d49f1905f8d9c1e9d39fc33e98c74f91d91a21b8f7ef78bd09a8db8
DB hash: 0x5a3ef282b21e12fe1f4438e5bb158fc5060b160559c5158c6389d62d9fe3d080
 -----------------------
Verification leaf hash in DB differs from the one in contract.
Contract hash: 0x101e08b00193e529145ee09823378ef51a3bc8966504064f1f6ba3f1ba863210
DB hash: 0x400a4b532c6f072c00d1806ef299300d4c104f4ac55bd8698ade78894fcadc0a
 -----------------------
Verification circuits hash in DB differs from the one in contract.
Contract hash: 0x18c1639094f58177409186e8c48d9f577c9410901d2f1d486b3e7d6cf553ae4c
DB hash: 0x0000000000000000000000000000000000000000000000000000000000000000

Please note that this command is temporary. Once the new zk tool is ready, this command will be something like 'pli status l1'. For now, the 'zk' tool is needed to set up the environment.

Checklist

  • 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 zk fmt and zk lint.
  • Spellcheck has been run via zk spellcheck.
  • Linkcheck has been run via zk linkcheck.

@ColoCarletti ColoCarletti changed the base branch from main to prover_cli_status_command April 16, 2024 21:56
Copy link
Contributor

@EmilLuta EmilLuta left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I believe this is WIP, correct me if I'm wrong.

@ilitteri ilitteri requested a review from EmilLuta May 6, 2024 16:52
EmilLuta
EmilLuta previously approved these changes May 7, 2024
EmilLuta
EmilLuta previously approved these changes May 8, 2024
@ColoCarletti ColoCarletti requested a review from EmilLuta May 8, 2024 16:16
EmilLuta
EmilLuta previously approved these changes May 8, 2024
@EmilLuta EmilLuta enabled auto-merge May 8, 2024 18:07
@EmilLuta EmilLuta added this pull request to the merge queue May 8, 2024
Merged via the queue into main with commit 8ddd039 May 8, 2024
26 of 27 checks passed
@EmilLuta EmilLuta deleted the prover_cli_status_l1 branch May 8, 2024 18:56
RomanBrodetski pushed a commit that referenced this pull request May 11, 2024
🤖 I have created a release *beep* *boop*
---


##
[14.1.0](prover-v14.0.0...prover-v14.1.0)
(2024-05-11)


### Features

* **en:** Brush up EN observability config
([#1897](#1897))
([086f768](086f768))
* Extract several crates from zksync_core
([#1859](#1859))
([7dcf796](7dcf796))
* **Prover CLI:** Configuration (with flag)
([#1861](#1861))
([620c880](620c880))
* **Prover CLI:** Initial Docs
([#1862](#1862))
([8b094aa](8b094aa))
* **Prover CLI:** status l1 command
([#1706](#1706))
([8ddd039](8ddd039))
* prover components versioning
([#1660](#1660))
([29a4ffc](29a4ffc))


### Bug Fixes

* 1.5.0 + validium (contracts only) patches
([#1911](#1911))
([bf439f4](bf439f4))
* Update prover cargo lock
([#1896](#1896))
([2ca01f5](2ca01f5))

---
This PR was generated with [Release
Please](https://github.com/googleapis/release-please). See
[documentation](https://github.com/googleapis/release-please#release-please).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants