@@ -2347,13 +2347,13 @@ func (bc *BlockChain) recoverAncestors(block *types.Block, makeWitness bool) (co
23472347// collectLogs collects the logs that were generated or removed during the
23482348// processing of a block. These logs are later announced as deleted or reborn.
23492349func (bc * BlockChain ) collectLogs (b * types.Block , removed bool ) []* types.Log {
2350- _ , logs := bc .collectLogsAndReceipts (b , removed )
2350+ _ , logs := bc .collectReceiptsAndLogs (b , removed )
23512351 return logs
23522352}
23532353
2354- // collectLogsAndReceipts retrieves receipts from the database and returns both receipts and logs.
2354+ // collectReceiptsAndLogs retrieves receipts from the database and returns both receipts and logs.
23552355// This avoids duplicate database reads when both are needed.
2356- func (bc * BlockChain ) collectLogsAndReceipts (b * types.Block , removed bool ) ([]* types.Receipt , []* types.Log ) {
2356+ func (bc * BlockChain ) collectReceiptsAndLogs (b * types.Block , removed bool ) ([]* types.Receipt , []* types.Log ) {
23572357 var blobGasPrice * big.Int
23582358 if b .ExcessBlobGas () != nil {
23592359 blobGasPrice = eip4844 .CalcBlobFee (bc .chainConfig , b .Header ())
@@ -2600,7 +2600,7 @@ func (bc *BlockChain) SetCanonical(head *types.Block) (common.Hash, error) {
26002600 bc .writeHeadBlock (head )
26012601
26022602 // Emit events
2603- receipts , logs := bc .collectLogsAndReceipts (head , false )
2603+ receipts , logs := bc .collectReceiptsAndLogs (head , false )
26042604
26052605 bc .chainFeed .Send (ChainEvent {
26062606 Header : head .Header (),
0 commit comments