eth: remove redundant return of prunedHistoryError

This commit is contained in:
Jared Wasinger 2025-03-12 18:12:30 +01:00 committed by Felix Lange
parent 45de73aaac
commit cf249eaff1

View file

@ -260,9 +260,6 @@ func (b *EthAPIBackend) GetReceipts(ctx context.Context, hash common.Hash) (type
} }
func (b *EthAPIBackend) GetLogs(ctx context.Context, hash common.Hash, number uint64) ([][]*types.Log, error) { func (b *EthAPIBackend) GetLogs(ctx context.Context, hash common.Hash, number uint64) ([][]*types.Log, error) {
if number < b.eth.blockchain.HistoryCutoff() {
return nil, &prunedHistoryError{}
}
return rawdb.ReadLogs(b.eth.chainDb, hash, number), nil return rawdb.ReadLogs(b.eth.chainDb, hash, number), nil
} }