diff options
Diffstat (limited to 'indexer')
-rw-r--r-- | indexer/blockchain.go (renamed from indexer/blockhain.go) | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/indexer/blockhain.go b/indexer/blockchain.go index bf9a180ce..a762ef67d 100644 --- a/indexer/blockhain.go +++ b/indexer/blockchain.go @@ -10,7 +10,9 @@ import ( "github.com/dexon-foundation/dexon/core" "github.com/dexon-foundation/dexon/core/state" "github.com/dexon-foundation/dexon/core/types" + "github.com/dexon-foundation/dexon/core/vm" "github.com/dexon-foundation/dexon/event" + "github.com/dexon-foundation/dexon/params" "github.com/dexon-foundation/dexon/rlp" ) @@ -18,6 +20,7 @@ import ( // methods of core.BlockChain struct. type ReadOnlyBlockChain interface { BadBlocks() []*types.Block + Config() *params.ChainConfig CurrentBlock() *types.Block CurrentFastBlock() *types.Block CurrentHeader() *types.Header @@ -54,6 +57,7 @@ type ReadOnlyBlockChain interface { GetTd(common.Hash, uint64) *big.Int GetTdByHash(common.Hash) *big.Int GetUnclesInChain(*types.Block, int) []*types.Header + GetVMConfig() *vm.Config HasBlock(common.Hash, uint64) bool HasBlockAndState(common.Hash, uint64) bool HasHeader(common.Hash, uint64) bool |