mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-11 06:23:47 +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,
|
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()
|
||||||
)
|
)
|
||||||
|
|
|
||||||
|
|
@ -44,6 +44,7 @@ var (
|
||||||
testSepoliaFlag,
|
testSepoliaFlag,
|
||||||
testMainnetFlag,
|
testMainnetFlag,
|
||||||
filterQueryFileFlag,
|
filterQueryFileFlag,
|
||||||
|
historyTestFileFlag,
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
testPatternFlag = &cli.StringFlag{
|
testPatternFlag = &cli.StringFlag{
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue