Skip to content

feat(state): Integrate new state package with Juno #2912

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

Draft
wants to merge 165 commits into
base: main
Choose a base branch
from

Conversation

MaksymMalicki
Copy link
Contributor

@MaksymMalicki MaksymMalicki commented Jun 18, 2025

stateDiagram-v2
    classDef merged fill:#e1bee7,stroke:#9c27b0,stroke-width:2px,color:#4a148c
    classDef ready fill:#c8e6c9,stroke:#4caf50,stroke-width:2px,color:#1b5e20
    classDef pending fill:#fff9c4,stroke:#ffeb3b,stroke-width:2px,color:#f57f17
    classDef draft fill:#686868,stroke:#686868,stroke-width:2px,color:#C8C8C8

    state "feat(state): Integrate new state package with Juno (#2912)" as integration
    state "refactor(DB): db storage optimizations (#2948)" as storageoptimizations
    state "refactor(juno): remove indexed batch (#2968)" as indexedbatch

    storageoptimizations --> integration
    indexedbatch --> integration

    class merged
    class ready
    class pending
    class integration, storageoptimizations, indexedbatch draft
Loading
stateDiagram-v2
    classDef merged fill:#e1bee7,stroke:#9c27b0,stroke-width:2px,color:#4a148c
    classDef ready fill:#c8e6c9,stroke:#4caf50,stroke-width:2px,color:#1b5e20
    classDef pending fill:#fff9c4,stroke:#ffeb3b,stroke-width:2px,color:#f57f17
    classDef draft fill:#686868,stroke:#686868,stroke-width:2px,color:#C8C8C8

    state "🟣 Merged" as legendMerged
    state "🟢 Ready for Review (Good Test Coverage)" as legendReady
    state "🟡 Implementation Complete (Pending Tests)" as legendPending
    state "⚪️ Draft (WiP)" as legendDraft

    class legendMerged merged
    class legendReady ready
    class legendPending pending
    class legendDraft draft

Loading

Base automatically changed from maksym/state-refactor to main June 24, 2025 18:25
Copy link

codecov bot commented Jul 1, 2025

Codecov Report

Attention: Patch coverage is 59.21053% with 186 lines in your changes missing coverage. Please review.

Project coverage is 72.35%. Comparing base (f950632) to head (b69cec8).

Files with missing lines Patch % Lines
blockchain/blockchain.go 52.79% 46 Missing and 30 partials ⚠️
consensus/mocks/mock_proposer.go 0.00% 50 Missing ⚠️
consensus/mocks/mock_validator.go 0.00% 8 Missing ⚠️
core/trie2/triedb/database.go 46.15% 5 Missing and 2 partials ⚠️
sync/pending.go 79.41% 7 Missing ⚠️
genesis/genesis.go 45.45% 4 Missing and 2 partials ⚠️
sync/sync.go 60.00% 5 Missing and 1 partial ⚠️
core/accessors.go 44.44% 1 Missing and 4 partials ⚠️
core/trie2/triedb/pathdb/database.go 0.00% 5 Missing ⚠️
mempool/mempool.go 25.00% 3 Missing ⚠️
... and 8 more

❌ Your patch check has failed because the patch coverage (59.21%) 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             @@
##             main    #2912      +/-   ##
==========================================
+ Coverage   72.19%   72.35%   +0.16%     
==========================================
  Files         262      259       -3     
  Lines       28368    27659     -709     
==========================================
- Hits        20479    20012     -467     
+ Misses       6496     6346     -150     
+ Partials     1393     1301      -92     

☔ 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.

Comment on lines -56 to 61
var stateClassHash *felt.Felt
var stateClassHash felt.Felt
if reader == nil {
// zero block
stateClassHash = &felt.Zero
stateClassHash = felt.Zero
} else {
Copy link
Contributor

Choose a reason for hiding this comment

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

stateClassHash := felt.Zero
if reader != nil {
  ...
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants