miner: fix nil statedb panic in applyTransaction pre-amsterdam#33968
Merged
MariusVanDerWijden merged 1 commit intoethereum:bal-devnet-3from Mar 6, 2026
Merged
Conversation
When accessList is nil (pre-Amsterdam blocks), stateCopy is never assigned and passed as nil to core.ApplyTransaction. This causes a nil pointer dereference at state_processor.go:224 when checking statedb.Database().TrieDB().IsVerkle(). Set stateCopy = env.state in the non-Amsterdam path so ApplyTransaction always receives a valid statedb. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
51018a5
into
ethereum:bal-devnet-3
2 of 3 checks passed
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
accessListis nil (pre-Amsterdam blocks),stateCopyis never assigned and passed as nil tocore.ApplyTransaction, causing a nil pointer dereference atstate_processor.go:224(statedb.Database().TrieDB().IsVerkle())StateReaderTrackertype assertion panic but missed this second crash path in the same functionstateCopy = env.statein the non-Amsterdam path soApplyTransactionalways receives a valid statedbTest plan
gloas_fork_epoch: 256, pre-Amsterdam): 36+ slots, zero missed blocks, zero geth errors🤖 Generated with Claude Code