private IEnumerable <FilterLog> FindLogsInBlock(LogFilter filter, Keccak blockHash, long blockNumber) { if (blockHash != null) { return(_receiptFinder.TryGetReceiptsIterator(blockNumber, blockHash, out var iterator) ? FilterLogsInBlockLowMemoryAllocation(filter, ref iterator) : FilterLogsInBlockHighMemoryAllocation(filter, blockHash, blockNumber)); } return(Array.Empty <FilterLog>()); }
public bool TryGetReceiptsIterator(long blockNumber, Keccak blockHash, out ReceiptsIterator iterator) => _innerFinder.TryGetReceiptsIterator(blockNumber, blockHash, out iterator);