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

View file

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