Skip to content

fix(inspector): ignore stale SELFDESTRUCT journal entries - #3797

Closed
0xalpharush wants to merge 1 commit into
bluealloy:glam-devnet-7from
0xalpharush:agent/selfdestruct-inspector-journal
Closed

0xalpharush wants to merge 1 commit into
bluealloy:glam-devnet-7from
0xalpharush:agent/selfdestruct-inspector-journal

Conversation

@0xalpharush

@0xalpharush 0xalpharush commented Jul 13, 2026 •

Copy link
Copy Markdown
Contributor

Summary

Record the journal index before SELFDESTRUCT and derive callback metadata only from entries produced by that instruction.

This branch is retargeted onto glam-devnet-7 / #3795.

Sequencing

This is the standalone version of the stale-SELFDESTRUCT journal fix. #3796 currently carries the same logical fix as a prerequisite for its Amsterdam preserved-value fix. If this PR lands first, #3796 should be rebased and its duplicate stale-journal commit dropped. If #3796 lands first as the combined inspector series, this PR can be closed as a subset.

Impact

For an EIP-6780 no-op SELFDESTRUCT, no new destruction entry is appended. Reading journal.last() could therefore reuse an unrelated earlier balance transfer or destruction and report the wrong contract, beneficiary, and value to tracer consumers. Execution, state, and receipts are unaffected.

Testing

@codspeed

codspeed Bot commented Jul 13, 2026 •

Copy link
Copy Markdown

Merging this PR will not alter performance

✅ 181 untouched benchmarks
⏩ 1 skipped benchmark1


Comparing 0xalpharush:agent/selfdestruct-inspector-journal (f341f65) with glam-devnet-7 (3b2393b)

Open in CodSpeed

Footnotes

  1. 1 benchmark was skipped, so the baseline result was used instead. If it was deleted from the codebase, click here and archive it to remove it from the performance reports. ↩

@0xalpharush
0xalpharush force-pushed the agent/selfdestruct-inspector-journal branch from dcc55cd to f341f65 Compare July 13, 2026 20:19
@0xalpharush
0xalpharush changed the base branch from main to glam-devnet-7 July 13, 2026 20:20
@rakita

rakita commented Jul 15, 2026

Copy link
Copy Markdown
Member

Good fix, not really related to glamsterdam, this is a bug for main. Rebase it to main and let merge it

@0xalpharush

0xalpharush commented Jul 17, 2026 •

Copy link
Copy Markdown
Contributor Author

replaced by #3805

@rakita

rakita commented Jul 22, 2026 •

Copy link
Copy Markdown
Member

Superseded by main #3805

@rakita rakita closed this Jul 22, 2026
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