aboutsummaryrefslogtreecommitdiffstats
path: root/cmd/utils/flags.go
diff options
context:
space:
mode:
Diffstat (limited to 'cmd/utils/flags.go')
-rw-r--r--cmd/utils/flags.go4
1 files changed, 4 insertions, 0 deletions
diff --git a/cmd/utils/flags.go b/cmd/utils/flags.go
index 1f1db9fc3..bfe565c30 100644
--- a/cmd/utils/flags.go
+++ b/cmd/utils/flags.go
@@ -1311,6 +1311,10 @@ func setIndexerConfig(ctx *cli.Context, cfg *dex.Config) {
cfg.Indexer.Plugin = ctx.GlobalString(IndexerPluginFlag.Name)
cfg.Indexer.PluginFlags = ctx.GlobalString(IndexerPluginFlagsFlag.Name)
+ // copy required dex configs
+ cfg.Indexer.Genesis = cfg.Genesis
+ cfg.Indexer.NetworkID = cfg.NetworkId
+ cfg.Indexer.SyncMode = cfg.SyncMode
}
// SetDashboardConfig applies dashboard related command line flags to the config.