erigon-pulse/cmd/sentinel/cli/flags/flags.go

101 lines
2.5 KiB
Go
Raw Normal View History

2022-10-16 17:54:12 +00:00
package flags
import "github.com/urfave/cli/v2"
2022-10-16 17:54:12 +00:00
var (
SentinelDiscoveryPort = cli.IntFlag{
Name: "discovery.port",
2022-10-16 17:54:12 +00:00
Usage: "sets the lightclient port",
Value: 4000,
2022-10-16 17:54:12 +00:00
}
SentinelDiscoveryAddr = cli.StringFlag{
Name: "discovery.addr",
Usage: "sets the lightclient discovery addr",
2022-10-16 17:54:12 +00:00
Value: "127.0.0.1",
}
SentinelTcpPort = cli.UintFlag{
Name: "sentinel.tcp.port",
2022-10-16 17:54:12 +00:00
Usage: "sets lightclient tcp port",
Value: 4001,
2022-10-16 17:54:12 +00:00
}
SentinelServerPort = cli.IntFlag{
Name: "sentinel.port",
2022-10-16 17:54:12 +00:00
Usage: "sets the lightclient server port",
Value: 7777,
}
SentinelServerAddr = cli.StringFlag{
Name: "sentinel.addr",
2022-10-16 17:54:12 +00:00
Usage: "sets the lightclient server host addr",
Value: "localhost",
}
BootnodesFlag = cli.StringFlag{
Name: "sentinel.bootnodes",
Usage: "Comma separated enode URLs for P2P discovery bootstrap",
Value: "",
}
BeaconConfigFlag = cli.StringFlag{
Name: "beacon-config",
Usage: "Path to beacon config",
Value: "",
}
GenesisSSZFlag = cli.StringFlag{
Name: "genesis-ssz",
Usage: "Path to genesis ssz",
Value: "",
}
Chain = cli.StringFlag{
Name: "chain",
2022-10-16 17:54:12 +00:00
Usage: "sets the chain specs for the lightclient",
Value: "mainnet",
}
NoDiscovery = cli.BoolFlag{
Name: "no-discovery",
2022-10-16 17:54:12 +00:00
Usage: "turn off or on the lightclient finding peers",
Value: false,
2022-10-16 17:54:12 +00:00
}
2022-11-16 15:19:40 +00:00
ChaindataFlag = cli.StringFlag{
Name: "chaindata",
Usage: "chaindata of database",
Value: "",
}
2023-01-04 02:02:24 +00:00
BeaconDBModeFlag = cli.StringFlag{
Name: "beacon-db-mode",
Usage: "level of storing on beacon chain, minimal(only 500k blocks stored), full (all blocks stored), light (no blocks stored)",
Value: "full",
}
CheckpointSyncUrlFlag = cli.StringFlag{
Name: "checkpoint-sync-url",
Usage: "checkpoint sync endpoint",
Value: "",
}
ErigonPrivateApiFlag = cli.StringFlag{
Name: "private.api.addr",
Usage: "connect to existing erigon instance",
Value: "",
}
2023-02-15 17:56:10 +00:00
SentinelStaticPeersFlag = cli.StringFlag{
Name: "sentinel.staticpeers",
Usage: "connect to comma-separated Consensus static peers",
Value: "",
}
TransitionChainFlag = cli.BoolFlag{
Name: "transition-chain",
Usage: "enable chain transition",
}
2023-05-15 18:07:27 +00:00
InitSyncFlag = cli.BoolFlag{
Value: false,
Name: "initial-sync",
Usage: "use initial-sync",
}
2023-06-04 23:52:55 +00:00
RecordModeFlag = cli.BoolFlag{
Value: false,
Name: "record-mode",
Usage: "enable/disable record mode",
}
RecordModeDir = cli.StringFlag{
Value: "caplin-recordings",
Name: "record-dir",
Usage: "directory for states and block recordings",
}
2022-10-16 17:54:12 +00:00
)