bb: add ParentBeaconBlockRoot param to BuildBlockArgs

This commit is contained in:
halo3mic 2024-02-14 03:33:10 +00:00
parent 9b2bee565d
commit 25507e068a
2 changed files with 3 additions and 0 deletions

View file

@ -18,6 +18,7 @@ type BuildBlockArgs struct {
GasLimit uint64
Random common.Hash
Withdrawals []*Withdrawal
ParentBeaconBlockRoot common.Hash
Extra []byte
FillPending bool
}

View file

@ -1291,6 +1291,7 @@ func (w *worker) buildBlockFromTxs(ctx context.Context, args *types.BuildBlockAr
random: args.Random,
extra: args.Extra,
withdrawals: args.Withdrawals,
beaconRoot: &args.ParentBeaconBlockRoot,
// noUncle: true,
noTxs: false,
}
@ -1339,6 +1340,7 @@ func (w *worker) buildBlockFromBundles(ctx context.Context, args *types.BuildBlo
random: args.Random,
extra: args.Extra,
withdrawals: args.Withdrawals,
beaconRoot: &args.ParentBeaconBlockRoot,
// noUncle: true,
noTxs: false,
}