mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-27 15:16:43 +00:00
eth: remove redundant return of prunedHistoryError
This commit is contained in:
parent
45de73aaac
commit
cf249eaff1
1 changed files with 0 additions and 3 deletions
|
|
@ -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
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue