disabling requests

This commit is contained in:
Lucca Martins 2025-02-16 17:00:40 -03:00
parent 9367a9e9f3
commit 1193fc40e0
No known key found for this signature in database
GPG key ID: DC3D7F76BDAE23BF

View file

@ -110,21 +110,13 @@ func (p *StateProcessor) Process(block *types.Block, statedb *state.StateDB, cfg
receipts = append(receipts, receipt)
allLogs = append(allLogs, receipt.Logs...)
}
// Read requests if Prague is enabled.
var requests types.Requests
if p.config.IsPrague(block.Number()) {
requests, err = ParseDepositLogs(allLogs, p.config)
if err != nil {
return nil, err
}
}
// Finalize the block, applying any consensus engine specific extras (e.g. block rewards)
p.hc.engine.Finalize(p.bc, header, statedb, block.Body())
return &ProcessResult{
Receipts: receipts,
Requests: requests,
Requests: nil,
Logs: allLogs,
GasUsed: *usedGas,
}, nil