This commit is contained in:
Zsolt Felfoldi 2025-02-15 00:19:09 +01:00
parent 9742b7a074
commit d52e5ca7a1
1 changed files with 24 additions and 12 deletions

View File

@ -53,6 +53,12 @@ var (
func filterTestCmd(ctx *cli.Context) error {
f := filterTest{ec: makeEthClient(ctx)}
for {
select {
case <-ctx.Done():
return nil
default:
}
f.getFinalizedBlock()
query := f.newQuery()
f.query(&query)
@ -67,6 +73,7 @@ func filterTestCmd(ctx *cli.Context) error {
}
f.storeQuery(query)
}
}
return nil
}
@ -81,6 +88,11 @@ func (f *filterTest) storeQuery(query filterQuery) {
} else {
f.stored[bucket][rand.Intn(len(f.stored[bucket]))] = query
}
fmt.Print("stored")
for _, list := range f.stored {
fmt.Print(" ", len(list))
}
fmt.Println()
}
func (f *filterTest) extendQuery(q filterQuery) filterQuery {