aboutsummaryrefslogtreecommitdiffstats
path: root/cmd
diff options
context:
space:
mode:
authorSonic <sonic@dexon.org>2019-03-27 20:02:55 +0800
committerWei-Ning Huang <w@dexon.org>2019-04-09 21:32:58 +0800
commit91981becf98b988470810aa1c26d86de2d294e29 (patch)
treeaeb9b175a5cce93e6bbe8870028e151096bc6759 /cmd
parenta29eba604b1a58ea414a6570223dedb0482cefaf (diff)
downloaddexon-91981becf98b988470810aa1c26d86de2d294e29.tar.gz
dexon-91981becf98b988470810aa1c26d86de2d294e29.tar.zst
dexon-91981becf98b988470810aa1c26d86de2d294e29.zip
backport from v1.8.23 (#304)
* dex: backport f6193ad * dex/downloader: backport accc0fa accc0fab 174083c3 * dex: backport 434dd5b * dex: backport 42a914a 0983d02 * dex: backport 48b70ec 31b3334 and some modification * dex/downloader: backport 5f251a6 * dex/downloader: backport 81c3dc7 * dex, dex/downloader: fix typos
Diffstat (limited to 'cmd')
-rw-r--r--cmd/utils/flags.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/cmd/utils/flags.go b/cmd/utils/flags.go
index 3b68794d5..6ac26d1fe 100644
--- a/cmd/utils/flags.go
+++ b/cmd/utils/flags.go
@@ -1126,7 +1126,7 @@ func setEthash(ctx *cli.Context, cfg *eth.Config) {
}
}
-func setWhitelist(ctx *cli.Context, cfg *eth.Config) {
+func setWhitelist(ctx *cli.Context, cfg *dex.Config) {
whitelist := ctx.GlobalString(WhitelistFlag.Name)
if whitelist == "" {
return
@@ -1212,6 +1212,7 @@ func SetDexConfig(ctx *cli.Context, stack *node.Node, cfg *dex.Config) {
ks := stack.AccountManager().Backends(keystore.KeyStoreType)[0].(*keystore.KeyStore)
setGPO(ctx, &cfg.GPO)
setTxPool(ctx, &cfg.TxPool)
+ setWhitelist(ctx, cfg)
if ctx.GlobalIsSet(SyncModeFlag.Name) {
cfg.SyncMode = *GlobalTextMarshaler(ctx, SyncModeFlag.Name).(*downloader.SyncMode)