From a14310f78ee8287347d6b103bd1eddd166eba2ce Mon Sep 17 00:00:00 2001 From: Chung-Yu Liu <42129254+johnliu-dexon@users.noreply.github.com> Date: Wed, 20 Mar 2019 18:40:28 +0800 Subject: indexer: support fast-sync (#287) --- indexer/blockchain.go | 2 ++ 1 file changed, 2 insertions(+) (limited to 'indexer') diff --git a/indexer/blockchain.go b/indexer/blockchain.go index 910305f9c..390a5fa64 100644 --- a/indexer/blockchain.go +++ b/indexer/blockchain.go @@ -48,8 +48,10 @@ type ReadOnlyBlockChain interface { HasBlockAndState(common.Hash, uint64) bool HasHeader(common.Hash, uint64) bool HasState(common.Hash) bool + Processor() core.Processor State() (*state.StateDB, error) StateAt(root common.Hash) (*state.StateDB, error) + StateCache() state.Database SubscribeChainEvent(chan<- core.ChainEvent) event.Subscription SubscribeChainHeadEvent(chan<- core.ChainHeadEvent) event.Subscription SubscribeChainSideEvent(chan<- core.ChainSideEvent) event.Subscription -- cgit v1.2.3