diff options
author | Meng-Ying Yang <garfield@dexon.org> | 2019-01-02 16:32:43 +0800 |
---|---|---|
committer | Wei-Ning Huang <w@dexon.org> | 2019-04-09 21:32:55 +0800 |
commit | 96b70e6992620e17a1a64663d87d565e09dc1308 (patch) | |
tree | 3181dded4381d769ef15048e1fcd42c4980c77fa /indexer/blockchain.go | |
parent | b0a5c54715472109072d486f1f95c578efbd3038 (diff) | |
download | dexon-96b70e6992620e17a1a64663d87d565e09dc1308.tar dexon-96b70e6992620e17a1a64663d87d565e09dc1308.tar.gz dexon-96b70e6992620e17a1a64663d87d565e09dc1308.tar.bz2 dexon-96b70e6992620e17a1a64663d87d565e09dc1308.tar.lz dexon-96b70e6992620e17a1a64663d87d565e09dc1308.tar.xz dexon-96b70e6992620e17a1a64663d87d565e09dc1308.tar.zst dexon-96b70e6992620e17a1a64663d87d565e09dc1308.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.go | 2 |
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) |