Skip to content

Commit

Permalink
Merge pull request ethereum#17 from eden-network/dancun_beacon_root
Browse files Browse the repository at this point in the history
Fix Dancun changes
  • Loading branch information
lthibault authored Feb 14, 2024
2 parents 75ecca1 + 33e34d7 commit d0a8120
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
1 change: 1 addition & 0 deletions core/types/suave_structs.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ type BuildBlockArgs struct {
GasLimit uint64
Random common.Hash
Withdrawals []*Withdrawal
ParentBeaconBlockRoot common.Hash
Extra []byte
BeaconRoot common.Hash
FillPending bool
Expand Down
6 changes: 5 additions & 1 deletion miner/worker.go
Original file line number Diff line number Diff line change
Expand Up @@ -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{}) {
Expand Down

0 comments on commit d0a8120

Please sign in to comment.