diff --git a/core/types/suave_structs.go b/core/types/suave_structs.go index 7c3db41cae..d6f4d1171d 100644 --- a/core/types/suave_structs.go +++ b/core/types/suave_structs.go @@ -15,6 +15,7 @@ type BuildBlockArgs struct { GasLimit uint64 Random common.Hash Withdrawals []*Withdrawal + ParentBeaconBlockRoot common.Hash Extra []byte BeaconRoot common.Hash FillPending bool diff --git a/miner/worker.go b/miner/worker.go index 05e6965fd8..0d3c400d98 100644 --- a/miner/worker.go +++ b/miner/worker.go @@ -938,7 +938,11 @@ func (w *worker) prepareWork(genParams *generateParams) (*environment, error) { } // Set the extra field. if len(w.extra) != 0 { - header.Extra = w.extra + if len(genParams.extra) != 0 { + header.Extra = genParams.extra + } else { + header.Extra = w.extra + } } // Set the randomness field from the beacon chain if it's available. if genParams.random != (common.Hash{}) {