Skip to content

Commit ad0caf0

Browse files
committed
cleanup
1 parent 883f349 commit ad0caf0

File tree

3 files changed

+1
-13
lines changed

3 files changed

+1
-13
lines changed

evmrpc/filter.go

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -216,7 +216,6 @@ func (a *FilterAPI) GetLogs(
216216
ctx context.Context,
217217
crit filters.FilterCriteria,
218218
) (res []*ethtypes.Log, err error) {
219-
fmt.Println("In GetLogs", "crit", crit)
220219
defer recordMetrics(fmt.Sprintf("%s_getLogs", a.namespace), a.connectionType, time.Now(), err == nil)
221220
logs, _, err := a.logFetcher.GetLogsByFilters(ctx, crit, 0)
222221
return logs, err
@@ -312,7 +311,6 @@ func (f *LogFetcher) GetLogsByFilters(ctx context.Context, crit filters.FilterCr
312311
if !applyOpenEndedLogLimit && f.filterConfig.maxBlock > 0 && end >= (begin+f.filterConfig.maxBlock) {
313312
end = begin + f.filterConfig.maxBlock - 1
314313
}
315-
fmt.Println("In GetLogsByFilters", "begin", begin, "end", end)
316314
// begin should always be <= end block at this point
317315
if begin > end {
318316
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
374372
ctx.Logger().Error(fmt.Sprintf("FindLogsByBloom: unable to find receipt for hash %s", hash.Hex()))
375373
continue
376374
}
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)
379375
if !f.includeSyntheticReceipts && (receipt.TxType == ShellEVMTxType || receipt.EffectiveGasPrice == 0) {
380-
fmt.Println("In FindLogsByBloom", "skipping hash", hash.Hex())
381376
continue
382377
}
383-
fmt.Println("In FindLogsByBloom", "no skipping hash", hash.Hex())
384378
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)...)
388380
}
389381
}
390382
return

evmrpc/info.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,6 @@ type FeeHistoryResult struct {
4242
func (i *InfoAPI) BlockNumber() hexutil.Uint64 {
4343
startTime := time.Now()
4444
defer recordMetrics("eth_BlockNumber", i.connectionType, startTime, true)
45-
fmt.Println("In BlockNumber", "i.ctxProvider(LatestCtxHeight).BlockHeight() = ", i.ctxProvider(LatestCtxHeight).BlockHeight())
4645
return hexutil.Uint64(i.ctxProvider(LatestCtxHeight).BlockHeight())
4746
}
4847

evmrpc/setup_test.go

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -778,7 +778,6 @@ func setupLogs() {
778778
common.HexToHash("0x0000000000000000000000000000000000000000000000000000000000000456"),
779779
},
780780
}}}})
781-
fmt.Println("multiTxBlockSynthTx.Hash()", multiTxBlockSynthTx.Hash().Hex())
782781
EVMKeeper.MockReceipt(CtxMock, multiTxBlockSynthTx.Hash(), &types.Receipt{
783782
BlockNumber: MockHeight,
784783
TransactionIndex: 0,
@@ -819,7 +818,6 @@ func setupLogs() {
819818
multiTxBlockTx3.Hash(),
820819
})
821820
EVMKeeper.SetBlockBloom(MultiTxCtx, []ethtypes.Bloom{bloom1, bloom2, bloom3})
822-
fmt.Println("Should be on block 8", multiTxBlockTx1.Hash(), multiTxBlockTx2.Hash(), multiTxBlockTx3.Hash())
823821

824822
// block 2
825823
EVMKeeper.SetTxHashesOnHeight(Ctx, MockHeight, []common.Hash{
@@ -832,7 +830,6 @@ func setupLogs() {
832830
common.HexToHash("0x1111111111111111111111111111111111111111111111111111111111111112")},
833831
}}}})
834832
EVMKeeper.SetBlockBloom(Ctx, []ethtypes.Bloom{bloomSynth, bloom4, bloomTx1})
835-
fmt.Println("Should be on block 2", multiTxBlockSynthTx.Hash(), multiTxBlockTx4.Hash())
836833
}
837834

838835
//nolint:deadcode

0 commit comments

Comments
 (0)