2019-09-11 18:38:35 +00:00
|
|
|
package flags
|
|
|
|
|
|
|
|
import (
|
2020-05-31 06:44:34 +00:00
|
|
|
"github.com/urfave/cli/v2"
|
2019-09-11 18:38:35 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
var (
|
|
|
|
// InteropGenesisStateFlag defines a flag for the beacon node to load genesis state via file.
|
2020-03-19 21:46:44 +00:00
|
|
|
InteropGenesisStateFlag = &cli.StringFlag{
|
2019-09-11 18:38:35 +00:00
|
|
|
Name: "interop-genesis-state",
|
|
|
|
Usage: "The genesis state file (.SSZ) to load from",
|
|
|
|
}
|
|
|
|
// InteropMockEth1DataVotesFlag enables mocking the eth1 proof-of-work chain data put into blocks by proposers.
|
2020-03-19 21:46:44 +00:00
|
|
|
InteropMockEth1DataVotesFlag = &cli.BoolFlag{
|
2019-09-11 18:38:35 +00:00
|
|
|
Name: "interop-eth1data-votes",
|
|
|
|
Usage: "Enable mocking of eth1 data votes for proposers to package into blocks",
|
|
|
|
}
|
|
|
|
|
|
|
|
// InteropGenesisTimeFlag specifies genesis time for state generation.
|
2020-03-19 21:46:44 +00:00
|
|
|
InteropGenesisTimeFlag = &cli.Uint64Flag{
|
2019-09-11 18:38:35 +00:00
|
|
|
Name: "interop-genesis-time",
|
|
|
|
Usage: "Specify the genesis time for interop genesis state generation. Must be used with " +
|
|
|
|
"--interop-num-validators",
|
|
|
|
}
|
|
|
|
// InteropNumValidatorsFlag specifies number of genesis validators for state generation.
|
2020-03-19 21:46:44 +00:00
|
|
|
InteropNumValidatorsFlag = &cli.Uint64Flag{
|
2019-09-11 18:38:35 +00:00
|
|
|
Name: "interop-num-validators",
|
|
|
|
Usage: "Specify number of genesis validators to generate for interop. Must be used with --interop-genesis-time",
|
|
|
|
}
|
|
|
|
)
|