Skip to content

Commit 21d36f7

Browse files
authored
core: process EL requests in GenerateVerkleChain (#31175)
1 parent aa6d0ef commit 21d36f7

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

core/chain_makers.go

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -504,6 +504,13 @@ func GenerateVerkleChain(config *params.ChainConfig, parent *types.Block, engine
504504
if gen != nil {
505505
gen(i, b)
506506
}
507+
508+
requests := b.collectRequests(false)
509+
if requests != nil {
510+
reqHash := types.CalcRequestsHash(requests)
511+
b.header.RequestsHash = &reqHash
512+
}
513+
507514
body := &types.Body{
508515
Transactions: b.txs,
509516
Uncles: b.uncles,

0 commit comments

Comments
 (0)