From 25507e068ad2af8b95eaa439e38f3c7f0a6999a5 Mon Sep 17 00:00:00 2001 From: halo3mic Date: Wed, 14 Feb 2024 03:33:10 +0000 Subject: [PATCH] bb: add ParentBeaconBlockRoot param to BuildBlockArgs --- core/types/suave_structs.go | 1 + miner/worker.go | 2 ++ 2 files changed, 3 insertions(+) diff --git a/core/types/suave_structs.go b/core/types/suave_structs.go index 849acfcf9b..dbf1b5ef25 100644 --- a/core/types/suave_structs.go +++ b/core/types/suave_structs.go @@ -18,6 +18,7 @@ type BuildBlockArgs struct { GasLimit uint64 Random common.Hash Withdrawals []*Withdrawal + ParentBeaconBlockRoot common.Hash Extra []byte FillPending bool } diff --git a/miner/worker.go b/miner/worker.go index 6282aecc5b..bcf0ae470f 100644 --- a/miner/worker.go +++ b/miner/worker.go @@ -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, }