aboutsummaryrefslogtreecommitdiffstats
path: root/indexer/blockchain.go
diff options
context:
space:
mode:
authorMeng-Ying Yang <garfield@dexon.org>2019-01-02 16:32:43 +0800
committerWei-Ning Huang <w@dexon.org>2019-01-14 15:26:26 +0800
commitb39d189cf5ad87a7afe0093115e79591b633e21e (patch)
treef8c53a36501dee5bd669a1b27a31517e0b576f6b /indexer/blockchain.go
parent19c135a2431c71751d4bf3073ec2b42e0f3ff114 (diff)
downloaddexon-b39d189cf5ad87a7afe0093115e79591b633e21e.tar
dexon-b39d189cf5ad87a7afe0093115e79591b633e21e.tar.gz
dexon-b39d189cf5ad87a7afe0093115e79591b633e21e.tar.bz2
dexon-b39d189cf5ad87a7afe0093115e79591b633e21e.tar.lz
dexon-b39d189cf5ad87a7afe0093115e79591b633e21e.tar.xz
dexon-b39d189cf5ad87a7afe0093115e79591b633e21e.tar.zst
dexon-b39d189cf5ad87a7afe0093115e79591b633e21e.zip
Indexer plugin extension and custom flags support (#117)
* indexer: ReadOnlyBlockchain returns underlying engine * indexer: plugin configs support custom flags
Diffstat (limited to 'indexer/blockchain.go')
-rw-r--r--indexer/blockchain.go2
1 files changed, 2 insertions, 0 deletions
diff --git a/indexer/blockchain.go b/indexer/blockchain.go
index a762ef67d..421535184 100644
--- a/indexer/blockchain.go
+++ b/indexer/blockchain.go
@@ -7,6 +7,7 @@ import (
coreTypes "github.com/dexon-foundation/dexon-consensus/core/types"
"github.com/dexon-foundation/dexon/common"
+ "github.com/dexon-foundation/dexon/consensus"
"github.com/dexon-foundation/dexon/core"
"github.com/dexon-foundation/dexon/core/state"
"github.com/dexon-foundation/dexon/core/types"
@@ -24,6 +25,7 @@ type ReadOnlyBlockChain interface {
CurrentBlock() *types.Block
CurrentFastBlock() *types.Block
CurrentHeader() *types.Header
+ Engine() consensus.Engine
GasLimit() uint64
Genesis() *types.Block
GetAncestor(common.Hash, uint64, uint64, *uint64) (common.Hash, uint64)