Skip to content

Conversation

@MaksymMalicki
Copy link
Contributor

@MaksymMalicki MaksymMalicki commented Dec 22, 2025

This PR introduces the first verification command: trie verifier.
To use it, hit juno verify trie --db-path <path>. When no other flag is specified, this verifier runs with default config and scans all the contract, class and contracts storage tries residing in the DB. If the user wants to scan a particular group of tries, they can pass the --type flag, pointing to which tries should be verified.
For example:
juno verify trie --db-path <path> --type contract-storage --type class will omit the contract trie verification and will verify class and contract storage tries only.

@codecov
Copy link

codecov bot commented Dec 22, 2025

Codecov Report

❌ Patch coverage is 56.53495% with 143 lines in your changes missing coverage. Please review.
✅ Project coverage is 75.88%. Comparing base (3e34120) to head (b91b2e7).

Files with missing lines Patch % Lines
cmd/juno/verify/trie.go 57.81% 108 Missing and 27 partials ⚠️
cmd/juno/verify/verify.go 11.11% 8 Missing ⚠️

❌ Your patch check has failed because the patch coverage (56.53%) is below the target coverage (60.00%). You can increase the patch coverage or adjust the target coverage.

Additional details and impacted files
@@                  Coverage Diff                  @@
##           maksym/doctor-cmd    #3338      +/-   ##
=====================================================
- Coverage              76.04%   75.88%   -0.16%     
=====================================================
  Files                    349      350       +1     
  Lines                  32864    33193     +329     
=====================================================
+ Hits                   24992    25190     +198     
- Misses                  6085     6187     +102     
- Partials                1787     1816      +29     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Height uint8
}

func (v *TrieVerifier) Run(ctx context.Context, cfg Config) error {
Copy link
Collaborator

Choose a reason for hiding this comment

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

I'm not sure I understand the need of the Config interface. What's the rationale behind it?

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.

3 participants