core: enable EIP-2935 parent block hash processing for Amsterdam

The Amsterdam fork also requires EIP-2935 parent block hash processing,
but the condition only checked Prague and UBT. Add IsAmsterdam to
ensure ProcessParentBlockHash is called on Amsterdam-enabled networks.
This commit is contained in:
Weixie Cui 2026-07-04 19:01:13 +08:00
parent e3b6d0c86f
commit 6bd8bf0cae

View file

@ -169,7 +169,7 @@ func PreExecution(ctx context.Context, beaconRoot *common.Hash, parent common.Ha
ProcessBeaconBlockRoot(*beaconRoot, evm, blockAccessList) ProcessBeaconBlockRoot(*beaconRoot, evm, blockAccessList)
} }
// EIP-2935 // EIP-2935
if config.IsPrague(number, time) || config.IsUBT(number, time) { if config.IsPrague(number, time) || config.IsAmsterdam(number, time) || config.IsUBT(number, time) {
ProcessParentBlockHash(parent, evm, blockAccessList) ProcessParentBlockHash(parent, evm, blockAccessList)
} }
return blockAccessList return blockAccessList