This commit is contained in:
nethoxa 2025-02-19 18:48:27 +08:00 committed by GitHub
commit 0639a3a4a0
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 7 additions and 0 deletions

View File

@ -504,6 +504,13 @@ func GenerateVerkleChain(config *params.ChainConfig, parent *types.Block, engine
if gen != nil { if gen != nil {
gen(i, b) gen(i, b)
} }
requests := b.collectRequests(false)
if requests != nil {
reqHash := types.CalcRequestsHash(requests)
b.header.RequestsHash = &reqHash
}
body := &types.Body{ body := &types.Body{
Transactions: b.txs, Transactions: b.txs,
Uncles: b.uncles, Uncles: b.uncles,