aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChung-Yu Liu <42129254+johnliu-dexon@users.noreply.github.com>2019-03-20 18:40:28 +0800
committerWei-Ning Huang <w@byzantine-lab.io>2019-06-13 18:11:44 +0800
commita14310f78ee8287347d6b103bd1eddd166eba2ce (patch)
tree63e5cff78276b5127acae95f9d6849f8e4e76cd9
parent434e74e4b975c0f7fb3763cd6fd67eb7e020a768 (diff)
downloadgo-tangerine-a14310f78ee8287347d6b103bd1eddd166eba2ce.tar
go-tangerine-a14310f78ee8287347d6b103bd1eddd166eba2ce.tar.gz
go-tangerine-a14310f78ee8287347d6b103bd1eddd166eba2ce.tar.bz2
go-tangerine-a14310f78ee8287347d6b103bd1eddd166eba2ce.tar.lz
go-tangerine-a14310f78ee8287347d6b103bd1eddd166eba2ce.tar.xz
go-tangerine-a14310f78ee8287347d6b103bd1eddd166eba2ce.tar.zst
go-tangerine-a14310f78ee8287347d6b103bd1eddd166eba2ce.zip
indexer: support fast-sync (#287)
-rw-r--r--indexer/blockchain.go2
1 files changed, 2 insertions, 0 deletions
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