Repository navigation
fix(inspector): ignore stale SELFDESTRUCT journal entries - #3797
Closed
0xalpharush wants to merge 1 commit into
Closed
0xalpharush wants to merge 1 commit into
0xalpharush wants to merge 1 commit into
Conversation
Merging this PR will not alter performance
Comparing Footnotes
|
0xalpharush
force-pushed
the
agent/selfdestruct-inspector-journal
branch
from
July 13, 2026 20:19
dcc55cd to
f341f65
Compare
Member
|
Good fix, not really related to glamsterdam, this is a bug for main. Rebase it to main and let merge it |
Contributor
Author
|
replaced by #3805 |
Member
|
Superseded by main #3805 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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
cargo +nightly test -p revm-inspector selfdestruct_to_selfon the feat(amsterdam): glamsterdam devnet-7 alignment (EIP-2780 runtime gas phase, fixtures v7.0.0) #3795 base