mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-19 11:20:45 +00:00
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:
parent
e3b6d0c86f
commit
6bd8bf0cae
1 changed files with 1 additions and 1 deletions
|
|
@ -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
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue