From 526a2b3a4fb35356a3f3fea7dc830863dacc246b Mon Sep 17 00:00:00 2001 From: rayoo Date: Tue, 12 May 2026 13:43:06 +0800 Subject: [PATCH] cmd/evm/t8ntool: gate ProcessParentBlockHash on IsPrague || IsUBT Mirror the IsPrague || IsUBT check used by core.PreExecution and the other refactored sites in #34812. UBT activates EIP-2935 too, so a UBT-only test config (e.g. tests/init.go Forks["Verkle"]) was silently skipping ProcessParentBlockHash here. --- cmd/evm/internal/t8ntool/execution.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/evm/internal/t8ntool/execution.go b/cmd/evm/internal/t8ntool/execution.go index 15973e934d..f5372044fd 100644 --- a/cmd/evm/internal/t8ntool/execution.go +++ b/cmd/evm/internal/t8ntool/execution.go @@ -233,7 +233,7 @@ func (pre *Prestate) Apply(vmConfig vm.Config, chainConfig *params.ChainConfig, if beaconRoot := pre.Env.ParentBeaconBlockRoot; beaconRoot != nil { core.ProcessBeaconBlockRoot(*beaconRoot, evm) } - if pre.Env.BlockHashes != nil && chainConfig.IsPrague(new(big.Int).SetUint64(pre.Env.Number), pre.Env.Timestamp) { + if pre.Env.BlockHashes != nil && (chainConfig.IsPrague(new(big.Int).SetUint64(pre.Env.Number), pre.Env.Timestamp) || chainConfig.IsUBT(new(big.Int).SetUint64(pre.Env.Number), pre.Env.Timestamp)) { var ( prevNumber = pre.Env.Number - 1 prevHash = pre.Env.BlockHashes[math.HexOrDecimal64(prevNumber)]