-
Notifications
You must be signed in to change notification settings - Fork 0
/
run_node_exchain.go
38 lines (35 loc) · 1.85 KB
/
run_node_exchain.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
package commands
import (
"github.com/spf13/cobra"
)
// AddNodeFlags exposes some common configuration options on the command-line
// These are exposed for convenience of commands embedding a tendermint node
func addMoreFlags(cmd *cobra.Command) {
cmd.Flags().Bool("p2p.addr_book_strict", config.P2P.AddrBookStrict,
"Set true for strict address routability rules, Set false for private or local networks")
cmd.Flags().String("p2p.external_address", config.P2P.ExternalAddress,
"The address to advertise to other peers for them to dial. If empty, will use the same one as the laddr")
cmd.Flags().Bool("p2p.allow_duplicate_ip", config.P2P.AllowDuplicateIP,
"Toggle to disable guard against peers connecting from the same ip")
//pprof flags
cmd.Flags().String("prof_laddr", config.ProfListenAddress,
"Node listen address. (0.0.0.0:0 means any interface, any port)")
cmd.Flags().Duration("consensus.timeout_propose", config.Consensus.TimeoutPropose,
"Set TimeoutPropose")
cmd.Flags().Duration("consensus.timeout_propose_delta", config.Consensus.TimeoutProposeDelta,
"Set TimeoutProposeDelta")
cmd.Flags().Duration("consensus.timeout_prevote", config.Consensus.TimeoutPrevote,
"Set TimeoutPrevote")
cmd.Flags().Duration("consensus.timeout_prevote_delta", config.Consensus.TimeoutPrevoteDelta,
"Set TimeoutPrevoteDelta")
cmd.Flags().Duration("consensus.timeout_precommit", config.Consensus.TimeoutPrecommit,
"Set TimeoutPrecommit")
cmd.Flags().Duration("consensus.timeout_precommit_delta", config.Consensus.TimeoutPrecommitDelta,
"Set TimeoutPrecommitDelta")
cmd.Flags().Duration("consensus.timeout_commit", config.Consensus.TimeoutCommit,
"Set TimeoutCommit")
cmd.Flags().Duration("consensus.timeout_consensus", config.Consensus.TimeoutConsensus,
"Set TimeoutConsensus")
cmd.Flags().Bool("consensus.waiting", config.Consensus.Waiting,
"Set Wating")
}