Skip to content

Check snapshot staleness before diff reads#142

Merged
YoshihitoAso merged 1 commit intodev-2.7from
fix-difflayer
Mar 23, 2026
Merged

Check snapshot staleness before diff reads#142
YoshihitoAso merged 1 commit intodev-2.7from
fix-difflayer

Conversation

@YoshihitoAso
Copy link
Copy Markdown
Member

@YoshihitoAso YoshihitoAso commented Mar 23, 2026

Add early staleness checks to diffLayer read paths (AccountRLP and Storage).

Ref: ethereum/go-ethereum#27254

  • Added a staleness check at the beginning of the AccountRLP method to return ErrSnapshotStale if the diff layer is stale, preventing further processing on outdated data.
  • Added a staleness check at the beginning of the Storage method to return ErrSnapshotStale if the diff layer is stale, ensuring operations are only performed on valid data.

Add early staleness checks to diffLayer read paths (AccountRLP and Storage).
@YoshihitoAso YoshihitoAso merged commit 1f8a501 into dev-2.7 Mar 23, 2026
5 checks passed
@YoshihitoAso YoshihitoAso deleted the fix-difflayer branch March 23, 2026 09:35
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.

2 participants