Skip to content

Conversation

@OlivierBBB
Copy link
Collaborator

@OlivierBBB OlivierBBB commented Oct 24, 2025

Note

Adjust EIP-4788 storage keys to use computed history buffer indices (timestampIdx, rootIdx) instead of raw timestamp.

  • EIP-4788 storage key calculation:
    • In Reaper.touchedBySystemTransactions, replace touches using raw timestamp with ring-buffer indices: timestampIdx = timestamp % HISTORY_BUFFER_LENGTH and rootIdx = timestampIdx + HISTORY_BUFFER_LENGTH.
    • Touch conflationStorage at timestampIdx and rootIdx for EIP4788_BEACONROOT_ADDRESS.

Written by Cursor Bugbot for commit 0ada993. This will update automatically on new commits. Configure here.

@OlivierBBB OlivierBBB self-assigned this Oct 24, 2025
@OlivierBBB OlivierBBB added the bug Something isn't working label Oct 24, 2025
Copy link
Collaborator

@DavePearce DavePearce left a comment

Choose a reason for hiding this comment

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

LGTM

Copy link
Collaborator

@letypequividelespoubelles letypequividelespoubelles left a comment

Choose a reason for hiding this comment

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

LGTM

@OlivierBBB OlivierBBB enabled auto-merge (squash) October 25, 2025 09:36
@OlivierBBB OlivierBBB merged commit 9e1fb77 into arith-dev Oct 25, 2025
15 checks passed
@OlivierBBB OlivierBBB deleted the reaper-4788-storage-key-fix branch October 25, 2025 09:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants