Skip to content

Gloas state cache#8719

Open
dapplion wants to merge 4 commits intosigp:unstablefrom
dapplion:gloas-state-cache
Open

Gloas state cache#8719
dapplion wants to merge 4 commits intosigp:unstablefrom
dapplion:gloas-state-cache

Conversation

@dapplion
Copy link
Collaborator

Issue Addressed

Allow the in-memory state cache to store both post-block states (payload status = empty) and post-payload states (payload status = full)

Proposed Changes

Add a new level to the state cache

- /// Map from block_root -> slot -> state_root.
+ /// Map from block_root -> slot -> payload_status -> state_root.

And force consumers to decide which payload_status they perfer when querying by block and slot

/// Filter for querying states by payload status.
pub enum PayloadStatusFilter {
    /// Only return the state where the execution payload was included.
    Full,
    /// Only return the state where the execution payload was not included.
    Empty,
    /// Return any state, preferring full to empty.
    Any,
}

The storage of HDiff buffers requires fixes, to be addressed in another PR

@dapplion dapplion added work-in-progress PR is a work-in-progress gloas labels Jan 29, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

gloas work-in-progress PR is a work-in-progress

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant