diff options
author | Meng-Ying Yang <garfield@dexon.org> | 2018-12-27 19:22:41 +0800 |
---|---|---|
committer | Wei-Ning Huang <w@dexon.org> | 2019-04-09 21:32:55 +0800 |
commit | e846701f0556712bcc15f676793f300dbbaf27b4 (patch) | |
tree | 0c7cb5e05d01409cc59ea374ee574488672ca81e /dex/config.go | |
parent | 4c5f086c60d805146f7938bd6b07775986c868cc (diff) | |
download | go-tangerine-e846701f0556712bcc15f676793f300dbbaf27b4.tar go-tangerine-e846701f0556712bcc15f676793f300dbbaf27b4.tar.gz go-tangerine-e846701f0556712bcc15f676793f300dbbaf27b4.tar.bz2 go-tangerine-e846701f0556712bcc15f676793f300dbbaf27b4.tar.lz go-tangerine-e846701f0556712bcc15f676793f300dbbaf27b4.tar.xz go-tangerine-e846701f0556712bcc15f676793f300dbbaf27b4.tar.zst go-tangerine-e846701f0556712bcc15f676793f300dbbaf27b4.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.go | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/dex/config.go b/dex/config.go index 5f148cc03..7661907cc 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() { @@ -121,4 +123,7 @@ type Config struct { // Dexon options DMoment int64 + + // Indexer config + Indexer indexer.Config } |