mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-27 23:26:44 +00:00
cmd/workload: add missing flags
This commit is contained in:
parent
af6e9f589c
commit
ae024ba2a8
2 changed files with 4 additions and 2 deletions
|
|
@ -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()
|
||||
)
|
||||
|
|
|
|||
|
|
@ -44,6 +44,7 @@ var (
|
|||
testSepoliaFlag,
|
||||
testMainnetFlag,
|
||||
filterQueryFileFlag,
|
||||
historyTestFileFlag,
|
||||
},
|
||||
}
|
||||
testPatternFlag = &cli.StringFlag{
|
||||
|
|
|
|||
Loading…
Reference in a new issue