aboutsummaryrefslogtreecommitdiffstats
path: root/cmd/gdex
diff options
context:
space:
mode:
authorMeng-Ying Yang <garfield@dexon.org>2018-12-27 19:22:41 +0800
committerWei-Ning Huang <w@dexon.org>2019-03-12 12:19:09 +0800
commitd124aec39f0e346b67434795b433797528084a57 (patch)
tree1b4038f2eca3cbb4b5c04391980a64d00a13134e /cmd/gdex
parent37e5d4b0f6a3ab072a8d41e3414048f8546df237 (diff)
downloaddexon-d124aec39f0e346b67434795b433797528084a57.tar
dexon-d124aec39f0e346b67434795b433797528084a57.tar.gz
dexon-d124aec39f0e346b67434795b433797528084a57.tar.bz2
dexon-d124aec39f0e346b67434795b433797528084a57.tar.lz
dexon-d124aec39f0e346b67434795b433797528084a57.tar.xz
dexon-d124aec39f0e346b67434795b433797528084a57.tar.zst
dexon-d124aec39f0e346b67434795b433797528084a57.zip
indexer: support data exporting/forwarding (#103)
To support more effective and flexible blockchain info exploring, we add `indexer` package, defines the flow of indexer dameon, and integrate into dex.Dexon fullnode. For more export options, we use Golang built-in `plugin` package to support mulitple implementations.
Diffstat (limited to 'cmd/gdex')
-rw-r--r--cmd/gdex/main.go2
-rw-r--r--cmd/gdex/usage.go7
2 files changed, 9 insertions, 0 deletions
diff --git a/cmd/gdex/main.go b/cmd/gdex/main.go
index f4e9bf994..2579e6f61 100644
--- a/cmd/gdex/main.go
+++ b/cmd/gdex/main.go
@@ -137,6 +137,8 @@ var (
utils.GpoPercentileFlag,
utils.EWASMInterpreterFlag,
utils.EVMInterpreterFlag,
+ utils.IndexerEnableFlag,
+ utils.IndexerPluginFlag,
configFileFlag,
}
diff --git a/cmd/gdex/usage.go b/cmd/gdex/usage.go
index c19991928..23afaa933 100644
--- a/cmd/gdex/usage.go
+++ b/cmd/gdex/usage.go
@@ -239,6 +239,13 @@ var AppHelpFlagGroups = []flagGroup{
},
},
{
+ Name: "INDEXER",
+ Flags: []cli.Flag{
+ utils.IndexerEnableFlag,
+ utils.IndexerPluginFlag,
+ },
+ },
+ {
Name: "WHISPER (EXPERIMENTAL)",
Flags: whisperFlags,
},