mirror of
https://gitlab.com/pulsechaincom/prysm-pulse.git
synced 2024-12-26 21:27:19 +00:00
7a83acf46d
* improve validator logging significantly * warn validator not yet assigned to epoch * build added * report validator logs * validator performance logging * all logging improvements * validator attest better logs * improved attester logging * average balances * dont hash useless hashes * Update validator/client/validator_propose.go Co-Authored-By: rauljordan <raul@prysmaticlabs.com> * address some comments * standardize with block root hash32, renamings * gazelle * builds * improve average eth balance * eth net gains/losses * fix tests * spacing * goimports * avg balance * update pbs * addressed preston comments * imports * gazelle
46 lines
1.7 KiB
Go
46 lines
1.7 KiB
Go
package utils
|
|
|
|
import (
|
|
"github.com/urfave/cli"
|
|
)
|
|
|
|
var (
|
|
// 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.",
|
|
}
|
|
// 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. Cannot be an HTTP endpoint.",
|
|
Value: "wss://goerli.prylabs.net/websocket",
|
|
}
|
|
// 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.",
|
|
}
|
|
// RPCPort defines a beacon node RPC port to open.
|
|
RPCPort = cli.StringFlag{
|
|
Name: "rpc-port",
|
|
Usage: "RPC port exposed by a beacon node",
|
|
Value: "4000",
|
|
}
|
|
// 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.",
|
|
}
|
|
// EnableDBCleanup tells the beacon node to automatically clean DB content such as block vote cache.
|
|
EnableDBCleanup = cli.BoolFlag{
|
|
Name: "enable-db-cleanup",
|
|
Usage: "Enable automatic DB cleanup routine",
|
|
}
|
|
)
|