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@dexon.org>2019-04-09 21:32:58 +0800
commit76de745eba01666d4407ded2e26d3c453996a8c3 (patch)
tree1aa74c4d7e86c57760b765cc97d9b159e7a2f547
parent2a6418678807137dfe6e5fba2969863bd468b840 (diff)
downloaddexon-76de745eba01666d4407ded2e26d3c453996a8c3.tar.gz
dexon-76de745eba01666d4407ded2e26d3c453996a8c3.tar.zst
dexon-76de745eba01666d4407ded2e26d3c453996a8c3.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