-
Notifications
You must be signed in to change notification settings - Fork 34
/
flags.go
67 lines (58 loc) · 2.02 KB
/
flags.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
// nolint=lll
package utils
import (
"gopkg.in/urfave/cli.v1"
)
var (
// ----------------------------
// ABCI Flags
// TendermintAddrFlag is the address that ethermint will use to connect to the tendermint core node
// #stable - 0.4.0
TendermintAddrFlag = cli.StringFlag{
Name: "tendermint_addr",
Value: "tcp://localhost:26657",
Usage: "This is the address that ethermint will use to connect to the tendermint core node. Please provide a port.",
}
// ABCIAddrFlag is the address that ethermint will use to listen to incoming ABCI connections
// #stable - 0.4.0
ABCIAddrFlag = cli.StringFlag{
Name: "abci_laddr",
Value: "tcp://0.0.0.0:26658",
Usage: "This is the address that the ABCI server will use to listen to incoming connection from tendermint core.",
}
// ABCIProtocolFlag defines whether GRPC or SOCKET should be used for the ABCI connections
// #stable - 0.4.0
ABCIProtocolFlag = cli.StringFlag{
Name: "abci_protocol",
Value: "socket",
Usage: "socket | grpc",
}
// VerbosityFlag defines the verbosity of the logging
// #unstable
VerbosityFlag = cli.IntFlag{
Name: "verbosity",
Value: 3,
Usage: "Logging verbosity: 0=silent, 1=error, 2=warn, 3=info, 4=core, 5=debug, 6=detail",
}
// ConfigFileFlag defines the path to a TOML config for go-ethereum
// #unstable
ConfigFileFlag = cli.StringFlag{
Name: "config",
Usage: "TOML configuration file",
}
// TargetGasLimitFlag defines gas limit of the Genesis block
// #unstable
TargetGasLimitFlag = cli.Uint64Flag{
Name: "targetgaslimit",
Usage: "Target gas limit sets the artificial target gas floor for the blocks to mine",
Value: GenesisTargetGasLimit.Uint64(),
}
// WithTendermintFlag asks to start Tendermint
// `tendermint init` and `tendermint node` when `ethermint init`
// and `ethermint` are invoked respectively.
WithTendermintFlag = cli.BoolFlag{
Name: "with-tendermint",
Usage: "If set, it will invoke `tendermint init` and `tendermint node` " +
"when `ethermint init` and `ethermint` are invoked respectively",
}
)