mirror of
https://gitlab.com/pulsechaincom/prysm-pulse.git
synced 2024-12-23 11:57:18 +00:00
4d5d229f0f
Former-commit-id: bbd5b46e7f64f762350d6fb496492207e70d7130 [formerly 43a37f7139b7d1d90f0c27a7406b63bdf390ad96] Former-commit-id: bb7a2ff0a7619f8de0bd38cd2c9eb0de7c189edb
25 lines
975 B
Go
25 lines
975 B
Go
package utils
|
|
|
|
import (
|
|
"github.com/urfave/cli"
|
|
)
|
|
|
|
var (
|
|
// Web3ProviderFlag defines a flag for a mainchain RPC endpoint.
|
|
Web3ProviderFlag = cli.StringFlag{
|
|
Name: "web3provider",
|
|
Usage: "A mainchain web3 provider string endpoint. Can either be an IPC file string or a WebSocket endpoint. Uses WebSockets by default at ws://127.0.0.1:8546. Cannot be an HTTP endpoint.",
|
|
Value: "ws://127.0.0.1:8546",
|
|
}
|
|
// VrcContractFlag defines a flag for VRC contract address.
|
|
VrcContractFlag = cli.StringFlag{
|
|
Name: "vrcaddr",
|
|
Usage: "Validator registration contract address. Beacon chain node will listen logs coming from VRC to determine when validator is eligible to participate.",
|
|
}
|
|
// PubKeyFlag defines a flag for validator's public key on the mainchain
|
|
PubKeyFlag = cli.StringFlag{
|
|
Name: "pubkey",
|
|
Usage: "Validator's public key. Beacon chain node will listen to VRC log to determine when registration has completed based on this public key address.",
|
|
}
|
|
)
|