aboutsummaryrefslogtreecommitdiffstats
path: root/dex/config.go
diff options
context:
space:
mode:
authorMeng-Ying Yang <garfield@dexon.org>2018-12-27 19:22:41 +0800
committerWei-Ning Huang <w@dexon.org>2018-12-28 14:15:39 +0800
commitd6a3661830f80ef57be208cec457d49c44a8d435 (patch)
tree9bcc12b6677df1f05a8992538f787ae600651807 /dex/config.go
parentd19dc5239ff44267f9bd3a9e8c6d182e56dd3a6f (diff)
downloaddexon-d6a3661830f80ef57be208cec457d49c44a8d435.tar
dexon-d6a3661830f80ef57be208cec457d49c44a8d435.tar.gz
dexon-d6a3661830f80ef57be208cec457d49c44a8d435.tar.bz2
dexon-d6a3661830f80ef57be208cec457d49c44a8d435.tar.lz
dexon-d6a3661830f80ef57be208cec457d49c44a8d435.tar.xz
dexon-d6a3661830f80ef57be208cec457d49c44a8d435.tar.zst
dexon-d6a3661830f80ef57be208cec457d49c44a8d435.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 'dex/config.go')
-rw-r--r--dex/config.go5
1 files changed, 5 insertions, 0 deletions
diff --git a/dex/config.go b/dex/config.go
index 404be2fb0..8aa002222 100644
--- a/dex/config.go
+++ b/dex/config.go
@@ -28,6 +28,7 @@ import (
"github.com/dexon-foundation/dexon/core"
"github.com/dexon-foundation/dexon/dex/downloader"
"github.com/dexon-foundation/dexon/eth/gasprice"
+ "github.com/dexon-foundation/dexon/indexer"
"github.com/dexon-foundation/dexon/params"
)
@@ -48,6 +49,7 @@ var DefaultConfig = Config{
},
BlockProposerEnabled: false,
DefaultGasPrice: big.NewInt(params.GWei),
+ Indexer: indexer.Config{},
}
func init() {
@@ -117,4 +119,7 @@ type Config struct {
// Dexon options
DMoment int64
+
+ // Indexer config
+ Indexer indexer.Config
}