diff options
author | Wei-Ning Huang <w@dexon.org> | 2018-11-03 15:28:45 +0800 |
---|---|---|
committer | Wei-Ning Huang <w@dexon.org> | 2019-03-12 12:19:09 +0800 |
commit | e552233512e0ccb1e296144d5446e2bb5b31212c (patch) | |
tree | 73eee066df01e0f2cfe406174d7620147873b7d1 /cmd/gdex | |
parent | 5454042ddf8b3a0b95292fa04479b919d845896b (diff) | |
download | dexon-e552233512e0ccb1e296144d5446e2bb5b31212c.tar dexon-e552233512e0ccb1e296144d5446e2bb5b31212c.tar.gz dexon-e552233512e0ccb1e296144d5446e2bb5b31212c.tar.bz2 dexon-e552233512e0ccb1e296144d5446e2bb5b31212c.tar.lz dexon-e552233512e0ccb1e296144d5446e2bb5b31212c.tar.xz dexon-e552233512e0ccb1e296144d5446e2bb5b31212c.tar.zst dexon-e552233512e0ccb1e296144d5446e2bb5b31212c.zip |
test: start a separate RPC node for testing block sync
Diffstat (limited to 'cmd/gdex')
-rw-r--r-- | cmd/gdex/main.go | 4 | ||||
-rw-r--r-- | cmd/gdex/usage.go | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/cmd/gdex/main.go b/cmd/gdex/main.go index 270c8f7b4..376559ef3 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 e8c2201ed..b9d4d1833 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, }, }, { |