mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-27 07:06:42 +00:00
Added overriden beacon root to header
This commit is contained in:
parent
795f3ec735
commit
2a99b5532d
1 changed files with 5 additions and 2 deletions
|
|
@ -249,8 +249,8 @@ func (sim *simulator) processBlock(ctx context.Context, block *simBlock, header,
|
|||
if sim.chainConfig.IsPrague(header.Number, header.Time) || sim.chainConfig.IsVerkle(header.Number, header.Time) {
|
||||
core.ProcessParentBlockHash(header.ParentHash, evm)
|
||||
}
|
||||
if block.BlockOverrides.BeaconRoot != nil {
|
||||
core.ProcessBeaconBlockRoot(*block.BlockOverrides.BeaconRoot, evm)
|
||||
if header.ParentBeaconRoot != nil {
|
||||
core.ProcessBeaconBlockRoot(*header.ParentBeaconRoot, evm)
|
||||
}
|
||||
var allLogs []*types.Log
|
||||
for i, call := range block.Calls {
|
||||
|
|
@ -457,6 +457,9 @@ func (sim *simulator) makeHeaders(blocks []simBlock) ([]*types.Header, error) {
|
|||
var parentBeaconRoot *common.Hash
|
||||
if sim.chainConfig.IsCancun(overrides.Number.ToInt(), (uint64)(*overrides.Time)) {
|
||||
parentBeaconRoot = &common.Hash{}
|
||||
if overrides.BeaconRoot != nil {
|
||||
parentBeaconRoot = overrides.BeaconRoot
|
||||
}
|
||||
}
|
||||
header = overrides.MakeHeader(&types.Header{
|
||||
UncleHash: types.EmptyUncleHash,
|
||||
|
|
|
|||
Loading…
Reference in a new issue