2019-07-23 13:58:20 +00:00
package flags
2018-07-19 16:31:50 +00:00
import (
"github.com/urfave/cli"
)
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." ,
2018-08-20 15:50:11 +00:00
}
2019-04-18 23:53:37 +00:00
// HTTPWeb3ProviderFlag provides an HTTP access endpoint to an ETH 1.0 RPC.
HTTPWeb3ProviderFlag = cli . StringFlag {
Name : "http-web3provider" ,
Usage : "A mainchain web3 provider string http endpoint" ,
Value : "https://goerli.prylabs.net" ,
}
2018-07-19 16:31:50 +00:00
// Web3ProviderFlag defines a flag for a mainchain RPC endpoint.
Web3ProviderFlag = cli . StringFlag {
Name : "web3provider" ,
2019-03-04 20:10:03 +00:00
Usage : "A mainchain web3 provider string endpoint. Can either be an IPC file string or a WebSocket endpoint. Cannot be an HTTP endpoint." ,
Value : "wss://goerli.prylabs.net/websocket" ,
2018-07-19 16:31:50 +00:00
}
2019-02-13 19:08:28 +00:00
// DepositContractFlag defines a flag for the deposit contract address.
DepositContractFlag = cli . StringFlag {
Name : "deposit-contract" ,
Usage : "Deposit contract address. Beacon chain node will listen logs coming from the deposit contract to determine when validator is eligible to participate." ,
2018-07-19 16:31:50 +00:00
}
2018-08-01 22:08:44 +00:00
// RPCPort defines a beacon node RPC port to open.
2019-06-02 15:33:44 +00:00
RPCPort = cli . IntFlag {
2018-08-01 22:08:44 +00:00
Name : "rpc-port" ,
Usage : "RPC port exposed by a beacon node" ,
2019-06-02 15:33:44 +00:00
Value : 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." ,
}
// KeyFlag defines a flag for the node's TLS key.
KeyFlag = cli . StringFlag {
Name : "tls-key" ,
Usage : "Key for secure gRPC. Pass this and the tls-cert flag in order to use gRPC securely." ,
}
2019-06-02 15:33:44 +00:00
// GRPCGatewayPort enables a gRPC gateway to be exposed for Prysm.
GRPCGatewayPort = cli . IntFlag {
Name : "grpc-gateway-port" ,
Usage : "Enable gRPC gateway for JSON requests" ,
}
2019-12-13 15:12:49 +00:00
// MinSyncPeers specifies the required number of successful peer handshakes in order
// to start syncing with external peers.
MinSyncPeers = cli . IntFlag {
Name : "min-sync-peers" ,
Usage : "The required number of valid peers to connect with before syncing." ,
Value : 3 ,
}
2018-07-19 16:31:50 +00:00
)