mirror of
https://gitlab.com/pulsechaincom/prysm-pulse.git
synced 2025-01-05 01:04:29 +00:00
af07c13730
* add main.go * interop readme * proper visibility * standardize and abstract into simpler funcs * formatting * no os pkg * add test * no panics anywhere, properly and nicely handle errors * proper comments * fix broken test * readme * comment * recommend ssz * install * tool now works * README * build * readme * 64 validators * rem print * register the no powchain flag * work on mock eth1 start * common interface * getting closer with the interface defs * only two uses of powchain * remove powchain dependency * remove powchain dependency * common powchain interface * proper comment in case of flag * proper args into rpc services * rename fields * pass in mock flag into RPC * conforms to iface * use client instead of block fetcher iface * broken tests * block fetcher * finalized * resolved broken build * fix build * comment * fix tests * tests pass * resolved confs * took them out * rename into smaller interfaces * resolve some confs * ensure tests pass * properly utilize mock instead of localized mock * res lint * lint * finish test for mock eth1data * run gazelle * include flag again * fix broken build * disable powchain * dont dial eth1 nodes * reenable pow * use smaller interfaces, standardize naming * abstract mock into its own package * faulty mock lint * fix stutter in lint * rpc tests all passing * use mocks for operations * no more mocks in the entire rpc package * no mock * viz * testonly
67 lines
2.6 KiB
Go
67 lines
2.6 KiB
Go
package flags
|
|
|
|
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.",
|
|
}
|
|
// 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",
|
|
}
|
|
// 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.IntFlag{
|
|
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",
|
|
}
|
|
// GRPCGatewayPort enables a gRPC gateway to be exposed for Prysm.
|
|
GRPCGatewayPort = cli.IntFlag{
|
|
Name: "grpc-gateway-port",
|
|
Usage: "Enable gRPC gateway for JSON requests",
|
|
}
|
|
// InteropMockEth1DataVotesFlag enables mocking the eth1 proof-of-work chain data put into blocks by proposers.
|
|
InteropMockEth1DataVotesFlag = cli.BoolFlag{
|
|
Name: "interop-eth1data-votes",
|
|
Usage: "Enable mocking of eth1 data votes for proposers to package into blocks",
|
|
}
|
|
// InteropGenesisStateFlag defines a flag for the beacon node to load genesis state via file.
|
|
InteropGenesisStateFlag = cli.StringFlag{
|
|
Name: "interop-genesis-state",
|
|
Usage: "The genesis state file (.SSZ) to load from",
|
|
}
|
|
)
|