add seed_mode flag (--p2p.seed_mode)

This commit is contained in:
Anton Kaliaev
2018-02-08 17:20:55 +04:00
parent 9e767771fc
commit cf1f483526
6 changed files with 32 additions and 5 deletions

View File

@ -32,6 +32,7 @@ func AddNodeFlags(cmd *cobra.Command) {
cmd.Flags().String("p2p.persistent_peers", config.P2P.PersistentPeers, "Comma delimited host:port persistent peers")
cmd.Flags().Bool("p2p.skip_upnp", config.P2P.SkipUPNP, "Skip UPNP configuration")
cmd.Flags().Bool("p2p.pex", config.P2P.PexReactor, "Enable/disable Peer-Exchange")
cmd.Flags().Bool("p2p.seed_mode", config.P2P.SeedMode, "Enable/disable seed mode")
// consensus flags
cmd.Flags().Bool("consensus.create_empty_blocks", config.Consensus.CreateEmptyBlocks, "Set this to false to only produce blocks when there are txs or when the AppHash changes")