aboutsummaryrefslogtreecommitdiffstats
path: root/cmd
diff options
context:
space:
mode:
authorWei-Ning Huang <w@dexon.org>2018-11-03 15:28:45 +0800
committerWei-Ning Huang <w@dexon.org>2018-12-19 20:54:27 +0800
commit9993dec5084681850a898dd1fa9bb9875cec4979 (patch)
tree68471ef275ba0b70489c0900a945010e7af85f57 /cmd
parentc8a19065586e26ec99e2a00de8f76aea722b757d (diff)
downloaddexon-9993dec5084681850a898dd1fa9bb9875cec4979.tar.gz
dexon-9993dec5084681850a898dd1fa9bb9875cec4979.tar.zst
dexon-9993dec5084681850a898dd1fa9bb9875cec4979.zip
test: start a separate RPC node for testing block sync
Diffstat (limited to 'cmd')
-rw-r--r--cmd/gdex/main.go4
-rw-r--r--cmd/gdex/usage.go4
-rw-r--r--cmd/utils/flags.go8
3 files changed, 8 insertions, 8 deletions
diff --git a/cmd/gdex/main.go b/cmd/gdex/main.go
index 0253423ad..dd08bb353 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,
@@ -357,7 +357,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 2dee6f417..9b930e081 100644
--- a/cmd/gdex/usage.go
+++ b/cmd/gdex/usage.go
@@ -183,9 +183,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 c7a1b77de..cf81cbf00 100644
--- a/cmd/utils/flags.go
+++ b/cmd/utils/flags.go
@@ -316,10 +316,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{