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

52 lines
1.2 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
}
Verbosity = cli.UintFlag{
Name: "verbosity",
2022-10-16 17:54:12 +00:00
Usage: "specify lightclient verbosity level 0=silent, 1=err, 2=warn, 3=info, 4=debug, 5=details",
Value: 3,
}
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",
}
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: "",
}
2022-10-16 17:54:12 +00:00
)