core, eth, les, light: scope receipt functionality a bit cleaner
This commit is contained in:
@ -733,7 +733,7 @@ func (pm *ProtocolManager) handleMsg(p *peer) error {
|
||||
// Retrieve the requested block's receipts, skipping if unknown to us
|
||||
var results types.Receipts
|
||||
if number := rawdb.ReadHeaderNumber(pm.chainDb, hash); number != nil {
|
||||
results = rawdb.ReadReceipts(pm.chainDb, hash, *number)
|
||||
results = rawdb.ReadRawReceipts(pm.chainDb, hash, *number)
|
||||
}
|
||||
if results == nil {
|
||||
if header := pm.blockchain.GetHeaderByHash(hash); header == nil || header.ReceiptHash != types.EmptyRootHash {
|
||||
|
Reference in New Issue
Block a user