diff options
author | Wei-Ning Huang <w@dexon.org> | 2018-11-03 15:28:45 +0800 |
---|---|---|
committer | Wei-Ning Huang <w@dexon.org> | 2019-04-09 21:32:52 +0800 |
commit | e7f80a566b38c906b0a6fb5e8d60d0e68e3a510e (patch) | |
tree | faa67b9219e93810cb4edb686c074ef2263b604b /cmd | |
parent | 1b8ce702f45aa122ea0d89655c5fdef5e6ddb37e (diff) | |
download | dexon-e7f80a566b38c906b0a6fb5e8d60d0e68e3a510e.tar.gz dexon-e7f80a566b38c906b0a6fb5e8d60d0e68e3a510e.tar.zst dexon-e7f80a566b38c906b0a6fb5e8d60d0e68e3a510e.zip |
test: start a separate RPC node for testing block sync
Diffstat (limited to 'cmd')
-rw-r--r-- | cmd/gdex/main.go | 4 | ||||
-rw-r--r-- | cmd/gdex/usage.go | 4 | ||||
-rw-r--r-- | cmd/utils/flags.go | 8 |
3 files changed, 8 insertions, 8 deletions
diff --git a/cmd/gdex/main.go b/cmd/gdex/main.go index 84a02cca4..0fb94b89e 100644 --- a/cmd/gdex/main.go +++ b/cmd/gdex/main.go @@ -97,7 +97,7 @@ var ( utils.ListenPortFlag, utils.MaxPeersFlag, utils.MaxPendingPeersFlag, - utils.ProposingEnabledFlag, + utils.BlockProposerEnabledFlag, utils.MiningEnabledFlag, utils.MinerThreadsFlag, utils.MinerLegacyThreadsFlag, @@ -358,7 +358,7 @@ func startNode(ctx *cli.Context, stack *node.Node) { } } - if ctx.GlobalBool(utils.ProposingEnabledFlag.Name) { + if ctx.GlobalBool(utils.BlockProposerEnabledFlag.Name) { if ctx.GlobalString(utils.SyncModeFlag.Name) == "light" { utils.Fatalf("Light clients do not support proposing") } diff --git a/cmd/gdex/usage.go b/cmd/gdex/usage.go index 685b5bc1c..496e20ecf 100644 --- a/cmd/gdex/usage.go +++ b/cmd/gdex/usage.go @@ -184,9 +184,9 @@ var AppHelpFlagGroups = []flagGroup{ }, }, { - Name: "PROPOSER", + Name: "BLOCK PROPOSER", Flags: []cli.Flag{ - utils.ProposingEnabledFlag, + utils.BlockProposerEnabledFlag, }, }, { diff --git a/cmd/utils/flags.go b/cmd/utils/flags.go index b96a155ff..feb304706 100644 --- a/cmd/utils/flags.go +++ b/cmd/utils/flags.go @@ -317,10 +317,10 @@ var ( Usage: "Number of trie node generations to keep in memory", Value: int(state.MaxTrieCacheGen), } - // Proposer settings - ProposingEnabledFlag = cli.BoolFlag{ - Name: "propose", - Usage: "Enable proposing", + // Nodeset settings + BlockProposerEnabledFlag = cli.BoolFlag{ + Name: "bp", + Usage: "Enable block proposer mode (node set)", } // Miner settings MiningEnabledFlag = cli.BoolFlag{ |