diff options
author | Meng-Ying Yang <garfield@dexon.org> | 2019-01-02 16:32:43 +0800 |
---|---|---|
committer | Wei-Ning Huang <w@byzantine-lab.io> | 2019-06-12 17:27:20 +0800 |
commit | 699d1c7f48d975d042f01659f4772b2153d36882 (patch) | |
tree | c1527e06493b4e67414b98bd7cbb2b1dfb1fac6a /cmd/utils | |
parent | 12876a86ac3dadd89831c2b02bf9be6fced9e24b (diff) | |
download | go-tangerine-699d1c7f48d975d042f01659f4772b2153d36882.tar go-tangerine-699d1c7f48d975d042f01659f4772b2153d36882.tar.gz go-tangerine-699d1c7f48d975d042f01659f4772b2153d36882.tar.bz2 go-tangerine-699d1c7f48d975d042f01659f4772b2153d36882.tar.lz go-tangerine-699d1c7f48d975d042f01659f4772b2153d36882.tar.xz go-tangerine-699d1c7f48d975d042f01659f4772b2153d36882.tar.zst go-tangerine-699d1c7f48d975d042f01659f4772b2153d36882.zip |
Indexer plugin extension and custom flags support (#117)
* indexer: ReadOnlyBlockchain returns underlying engine
* indexer: plugin configs support custom flags
Diffstat (limited to 'cmd/utils')
-rw-r--r-- | cmd/utils/flags.go | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/cmd/utils/flags.go b/cmd/utils/flags.go index 96a642850..28ac6b9c6 100644 --- a/cmd/utils/flags.go +++ b/cmd/utils/flags.go @@ -659,6 +659,11 @@ var ( Usage: "External indexer plugin shared object path", Value: "", } + IndexerPluginFlagsFlag = cli.StringFlag{ + Name: "indexer.plugin-flags", + Usage: "External indexer plugin's flags if needed", + Value: "", + } ) // MakeDataDir retrieves the currently requested data directory, terminating @@ -1305,6 +1310,7 @@ func setIndexerConfig(ctx *cli.Context, cfg *dex.Config) { } cfg.Indexer.Plugin = ctx.GlobalString(IndexerPluginFlag.Name) + cfg.Indexer.PluginFlags = ctx.GlobalString(IndexerPluginFlagsFlag.Name) } // SetDashboardConfig applies dashboard related command line flags to the config. |