@@ -216,7 +216,6 @@ func (a *FilterAPI) GetLogs(
216
216
ctx context.Context ,
217
217
crit filters.FilterCriteria ,
218
218
) (res []* ethtypes.Log , err error ) {
219
- fmt .Println ("In GetLogs" , "crit" , crit )
220
219
defer recordMetrics (fmt .Sprintf ("%s_getLogs" , a .namespace ), a .connectionType , time .Now (), err == nil )
221
220
logs , _ , err := a .logFetcher .GetLogsByFilters (ctx , crit , 0 )
222
221
return logs , err
@@ -312,7 +311,6 @@ func (f *LogFetcher) GetLogsByFilters(ctx context.Context, crit filters.FilterCr
312
311
if ! applyOpenEndedLogLimit && f .filterConfig .maxBlock > 0 && end >= (begin + f .filterConfig .maxBlock ) {
313
312
end = begin + f .filterConfig .maxBlock - 1
314
313
}
315
- fmt .Println ("In GetLogsByFilters" , "begin" , begin , "end" , end )
316
314
// begin should always be <= end block at this point
317
315
if begin > end {
318
316
return nil , 0 , fmt .Errorf ("fromBlock %d is after toBlock %d" , begin , end )
@@ -374,17 +372,11 @@ func (f *LogFetcher) FindLogsByBloom(height int64, filters [][]bloomIndexes) (re
374
372
ctx .Logger ().Error (fmt .Sprintf ("FindLogsByBloom: unable to find receipt for hash %s" , hash .Hex ()))
375
373
continue
376
374
}
377
- fmt .Println ("In FindLogsByBloom" , "considering hash" , hash .Hex ())
378
- fmt .Println ("In FindLogsByBloom" , "includeSyntheticReceipts" , f .includeSyntheticReceipts , "receipt.TxType" , receipt .TxType , "receipt.EffectiveGasPrice" , receipt .EffectiveGasPrice )
379
375
if ! f .includeSyntheticReceipts && (receipt .TxType == ShellEVMTxType || receipt .EffectiveGasPrice == 0 ) {
380
- fmt .Println ("In FindLogsByBloom" , "skipping hash" , hash .Hex ())
381
376
continue
382
377
}
383
- fmt .Println ("In FindLogsByBloom" , "no skipping hash" , hash .Hex ())
384
378
if len (receipt .LogsBloom ) > 0 && MatchFilters (ethtypes .Bloom (receipt .LogsBloom ), filters ) {
385
- logs := keeper .GetLogsForTx (receipt )
386
- fmt .Println ("Adding" , len (logs ), "logs" )
387
- res = append (res , logs ... )
379
+ res = append (res , keeper .GetLogsForTx (receipt )... )
388
380
}
389
381
}
390
382
return
0 commit comments