github.com/prysmaticlabs/prysm@v1.4.4/cmd/beacon-chain/flags/interop.go (about) 1 package flags 2 3 import ( 4 "github.com/urfave/cli/v2" 5 ) 6 7 var ( 8 // InteropGenesisStateFlag defines a flag for the beacon node to load genesis state via file. 9 InteropGenesisStateFlag = &cli.StringFlag{ 10 Name: "interop-genesis-state", 11 Usage: "The genesis state file (.SSZ) to load from. Note: loading from an interop genesis " + 12 "state does not use a web3 connection to read any deposits. This interop " + 13 "functionality should not be used with public testnets.", 14 } 15 // InteropMockEth1DataVotesFlag enables mocking the eth1 proof-of-work chain data put into blocks by proposers. 16 InteropMockEth1DataVotesFlag = &cli.BoolFlag{ 17 Name: "interop-eth1data-votes", 18 Usage: "Enable mocking of eth1 data votes for proposers to package into blocks", 19 } 20 21 // InteropGenesisTimeFlag specifies genesis time for state generation. 22 InteropGenesisTimeFlag = &cli.Uint64Flag{ 23 Name: "interop-genesis-time", 24 Usage: "Specify the genesis time for interop genesis state generation. Must be used with " + 25 "--interop-num-validators", 26 } 27 // InteropNumValidatorsFlag specifies number of genesis validators for state generation. 28 InteropNumValidatorsFlag = &cli.Uint64Flag{ 29 Name: "interop-num-validators", 30 Usage: "Specify number of genesis validators to generate for interop. Must be used with --interop-genesis-time", 31 } 32 )