From ec99444804f82049c6eb07ce7a98e5cde2aed901 Mon Sep 17 00:00:00 2001 From: Galoretka Date: Mon, 15 Sep 2025 10:26:16 +0300 Subject: [PATCH] core/overlay: copy BaseRoot in TransitionState.Copy (#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. --- core/overlay/state_transition.go | 1 + 1 file changed, 1 insertion(+) diff --git a/core/overlay/state_transition.go b/core/overlay/state_transition.go index 90b5c9431a..67ca0f9671 100644 --- a/core/overlay/state_transition.go +++ b/core/overlay/state_transition.go @@ -60,6 +60,7 @@ func (ts *TransitionState) Copy() *TransitionState { CurrentSlotHash: ts.CurrentSlotHash, CurrentPreimageOffset: ts.CurrentPreimageOffset, StorageProcessed: ts.StorageProcessed, + BaseRoot: ts.BaseRoot, } if ts.CurrentAccountAddress != nil { addr := *ts.CurrentAccountAddress