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 13:49:56 +0800 |
commit | e4a0d89a5245d1d5b29bc17612ebbe42f8a34ecc (patch) | |
tree | 22793a6f7056b14048658a8c48a534eacf99a6a4 /cmd | |
parent | 1bc071136cd06cb50ec0fe8ffe47e81232acddfb (diff) | |
download | dexon-e4a0d89a5245d1d5b29bc17612ebbe42f8a34ecc.tar dexon-e4a0d89a5245d1d5b29bc17612ebbe42f8a34ecc.tar.gz dexon-e4a0d89a5245d1d5b29bc17612ebbe42f8a34ecc.tar.bz2 dexon-e4a0d89a5245d1d5b29bc17612ebbe42f8a34ecc.tar.lz dexon-e4a0d89a5245d1d5b29bc17612ebbe42f8a34ecc.tar.xz dexon-e4a0d89a5245d1d5b29bc17612ebbe42f8a34ecc.tar.zst dexon-e4a0d89a5245d1d5b29bc17612ebbe42f8a34ecc.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 e58d445b3..1d2381f89 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, @@ -356,7 +356,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{ |