cmd/workload: add missing flags

This commit is contained in:
Felix Lange 2025-02-26 15:16:43 +01:00
parent af6e9f589c
commit ae024ba2a8
2 changed files with 4 additions and 2 deletions

View file

@ -39,6 +39,7 @@ var (
Action: generateHistoryTests,
Flags: []cli.Flag{
historyTestFileFlag,
historyTestEarliestFlag,
},
}
@ -48,7 +49,7 @@ var (
Value: "history_tests.json",
Category: flags.TestingCategory,
}
historyTestEarliesFlag = &cli.IntFlag{
historyTestEarliestFlag = &cli.IntFlag{
Name: "earliest",
Usage: "JSON file containing filter test queries",
Value: 0,
@ -61,7 +62,7 @@ const historyTestBlockCount = 2000
func generateHistoryTests(clictx *cli.Context) error {
var (
client = makeClient(clictx)
earliest = uint64(clictx.Int(historyTestEarliesFlag.Name))
earliest = uint64(clictx.Int(historyTestEarliestFlag.Name))
outputFile = clictx.String(historyTestFileFlag.Name)
ctx = context.Background()
)

View file

@ -44,6 +44,7 @@ var (
testSepoliaFlag,
testMainnetFlag,
filterQueryFileFlag,
historyTestFileFlag,
},
}
testPatternFlag = &cli.StringFlag{