Skip to content

Commit

Permalink
Merge pull request #1895 from CortexFoundation/dev
Browse files Browse the repository at this point in the history
reset filter begin
  • Loading branch information
ucwong authored Jan 19, 2024
2 parents 29174ea + c43a1c4 commit 3328ae7
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions ctxc/filters/filter_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,7 @@ func BenchmarkFilters(b *testing.B) {
filter := sys.NewRangeFilter(0, -1, []common.Address{addr1, addr2, addr3, addr4}, nil)

for i := 0; i < b.N; i++ {
filter.begin = 0
logs, _ := filter.Logs(context.Background())
if len(logs) != 4 {
b.Fatal("expected 4 logs, got", len(logs))
Expand Down

0 comments on commit 3328ae7

Please sign in to comment.