2019-07-23 13:58:20 +00:00
|
|
|
package flags
|
2015-07-28 22:16:16 +00:00
|
|
|
|
|
|
|
import (
|
2019-04-24 04:29:06 +00:00
|
|
|
"github.com/prysmaticlabs/prysm/shared/cmd"
|
2018-07-09 02:40:34 +00:00
|
|
|
"github.com/urfave/cli"
|
2018-01-13 22:31:28 +00:00
|
|
|
)
|
|
|
|
|
2015-07-28 22:16:16 +00:00
|
|
|
var (
|
2019-03-18 15:45:28 +00:00
|
|
|
// NoCustomConfigFlag determines whether to launch a beacon chain using real parameters or demo parameters.
|
|
|
|
NoCustomConfigFlag = cli.BoolFlag{
|
|
|
|
Name: "no-custom-config",
|
|
|
|
Usage: "Run the beacon chain with the real parameters from phase 0.",
|
2019-02-25 02:09:45 +00:00
|
|
|
}
|
2018-08-01 22:08:44 +00:00
|
|
|
// BeaconRPCProviderFlag defines a beacon node RPC endpoint.
|
|
|
|
BeaconRPCProviderFlag = cli.StringFlag{
|
|
|
|
Name: "beacon-rpc-provider",
|
|
|
|
Usage: "Beacon node RPC provider endpoint",
|
2019-01-30 12:28:53 +00:00
|
|
|
Value: "localhost:4000",
|
2018-08-01 22:08:44 +00:00
|
|
|
}
|
2018-08-08 22:43:25 +00:00
|
|
|
// CertFlag defines a flag for the node's TLS certificate.
|
|
|
|
CertFlag = cli.StringFlag{
|
|
|
|
Name: "tls-cert",
|
|
|
|
Usage: "Certificate for secure gRPC. Pass this and the tls-key flag in order to use gRPC securely.",
|
|
|
|
}
|
2019-01-30 15:24:28 +00:00
|
|
|
// KeystorePathFlag defines the location of the keystore directory for a validator's account.
|
2019-04-24 04:29:06 +00:00
|
|
|
KeystorePathFlag = cmd.DirectoryFlag{
|
2019-01-30 15:24:28 +00:00
|
|
|
Name: "keystore-path",
|
2019-08-26 21:07:09 +00:00
|
|
|
Usage: "Path to the desired keystore directory",
|
2020-01-24 17:21:31 +00:00
|
|
|
Value: cmd.DirectoryString{Value: ""},
|
2019-01-30 15:24:28 +00:00
|
|
|
}
|
2019-08-26 21:07:09 +00:00
|
|
|
// UnencryptedKeysFlag specifies a file path of a JSON file of unencrypted validator keys as an
|
|
|
|
// alternative from launching the validator client from decrypting a keystore directory.
|
|
|
|
UnencryptedKeysFlag = cli.StringFlag{
|
|
|
|
Name: "unencrypted-keys",
|
|
|
|
Usage: "Filepath to a JSON file of unencrypted validator keys for easier launching of the validator client",
|
|
|
|
Value: "",
|
|
|
|
}
|
2020-01-24 17:21:31 +00:00
|
|
|
// KeyManager specifies the key manager to use.
|
|
|
|
KeyManager = cli.StringFlag{
|
|
|
|
Name: "keymanager",
|
|
|
|
Usage: "The keymanger to use (unencrypted, interop, keystore, wallet)",
|
|
|
|
Value: "",
|
|
|
|
}
|
|
|
|
// KeyManagerOpts specifies the key manager options.
|
|
|
|
KeyManagerOpts = cli.StringFlag{
|
|
|
|
Name: "keymanageropts",
|
|
|
|
Usage: "The options for the keymanger, either a JSON string or path to same",
|
|
|
|
Value: "",
|
|
|
|
}
|
2019-02-21 20:34:44 +00:00
|
|
|
// PasswordFlag defines the password value for storing and retrieving validator private keys from the keystore.
|
2019-01-31 11:57:57 +00:00
|
|
|
PasswordFlag = cli.StringFlag{
|
|
|
|
Name: "password",
|
2019-08-26 21:07:09 +00:00
|
|
|
Usage: "String value of the password for your validator private keys",
|
2019-01-31 11:57:57 +00:00
|
|
|
}
|
2019-04-27 03:56:11 +00:00
|
|
|
// DisablePenaltyRewardLogFlag defines the ability to not log reward/penalty information during deployment
|
|
|
|
DisablePenaltyRewardLogFlag = cli.BoolFlag{
|
|
|
|
Name: "disable-rewards-penalties-logging",
|
|
|
|
Usage: "Disable reward/penalty logging during cluster deployment",
|
|
|
|
}
|
2019-12-07 19:13:56 +00:00
|
|
|
// GraffitiFlag defines the graffiti value included in proposed blocks
|
|
|
|
GraffitiFlag = cli.StringFlag{
|
2019-12-09 14:31:53 +00:00
|
|
|
Name: "graffiti",
|
2019-12-07 19:13:56 +00:00
|
|
|
Usage: "String to include in proposed blocks",
|
|
|
|
}
|
2020-01-13 17:29:43 +00:00
|
|
|
// GrpcMaxCallRecvMsgSizeFlag defines the max call message size for GRPC
|
|
|
|
GrpcMaxCallRecvMsgSizeFlag = cli.IntFlag{
|
|
|
|
Name: "grpc-max-msg-size",
|
|
|
|
Usage: "Integer to define max recieve message call size (default: 52428800 (for 50Mb)).",
|
|
|
|
}
|
2020-02-05 17:49:27 +00:00
|
|
|
// AccountMetricsFlag defines the graffiti value included in proposed blocks, default false.
|
|
|
|
AccountMetricsFlag = cli.BoolFlag{
|
|
|
|
Name: "enable-account-metrics",
|
|
|
|
Usage: "Enable prometheus metrics for validator accounts",
|
|
|
|
}
|
2015-07-28 22:16:16 +00:00
|
|
|
)
|