Skip to content

Commit f85a8bb

Browse files
GaloretkaSahil-4555
authored andcommitted
core/overlay: copy BaseRoot in TransitionState.Copy (ethereum#32613)
This change ensures TransitionState.Copy preserves BaseRoot. During a Verkle transition, ts.BaseRoot is required to construct the overlay MPT when ts.InTransition() is true. Previously, copies dropped BaseRoot, risking an invalid zero-hash base trie and inconsistent behavior.
1 parent 7828671 commit f85a8bb

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

core/overlay/state_transition.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,7 @@ func (ts *TransitionState) Copy() *TransitionState {
6060
CurrentSlotHash: ts.CurrentSlotHash,
6161
CurrentPreimageOffset: ts.CurrentPreimageOffset,
6262
StorageProcessed: ts.StorageProcessed,
63+
BaseRoot: ts.BaseRoot,
6364
}
6465
if ts.CurrentAccountAddress != nil {
6566
addr := *ts.CurrentAccountAddress

0 commit comments

Comments
 (0)