From 97a81753b89b8b69806f32ccd0f4ae54efc626be Mon Sep 17 00:00:00 2001 From: Rez Date: Wed, 3 Sep 2025 12:31:49 +1000 Subject: [PATCH] Update chain_makers.go (#81) --- core/chain_makers.go | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/core/chain_makers.go b/core/chain_makers.go index bb977105de..1e4d62b61d 100644 --- a/core/chain_makers.go +++ b/core/chain_makers.go @@ -104,8 +104,21 @@ func (b *BlockGen) SetParentBeaconRoot(root common.Hash) { // SetParentProposerPubkey sets the parent proposer pubkey field of the generated // block. -func (b *BlockGen) SetParentProposerPubkey(pubkey common.Pubkey) { +func (b *BlockGen) SetParentProposerPubkey(pubkey common.Pubkey) error { b.header.ParentProposerPubkey = &pubkey + tx, err := types.NewPoLTx( + b.cm.config.ChainID, + b.cm.config.Berachain.Prague1.PoLDistributorAddress, + b.header.Number, + params.PoLTxGasLimit, + b.header.BaseFee, + b.header.ParentProposerPubkey, + ) + if err != nil { + return err + } + b.AddTx(tx) + return nil } // addTx adds a transaction to the generated block. If no coinbase has