mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-20 10:52:25 +00:00
Merge pull request #17 from eden-network/dancun_beacon_root
Fix Dancun changes
This commit is contained in:
commit
d0a8120c8a
2 changed files with 6 additions and 1 deletions
|
|
@ -15,6 +15,7 @@ type BuildBlockArgs struct {
|
|||
GasLimit uint64
|
||||
Random common.Hash
|
||||
Withdrawals []*Withdrawal
|
||||
ParentBeaconBlockRoot common.Hash
|
||||
Extra []byte
|
||||
BeaconRoot common.Hash
|
||||
FillPending bool
|
||||
|
|
|
|||
|
|
@ -938,8 +938,12 @@ func (w *worker) prepareWork(genParams *generateParams) (*environment, error) {
|
|||
}
|
||||
// Set the extra field.
|
||||
if len(w.extra) != 0 {
|
||||
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{}) {
|
||||
header.MixDigest = genParams.random
|
||||
|
|
|
|||
Loading…
Reference in a new issue