diff options
author | Chung-Yu Liu <42129254+johnliu-dexon@users.noreply.github.com> | 2019-03-20 18:40:28 +0800 |
---|---|---|
committer | Wei-Ning Huang <w@dexon.org> | 2019-04-09 13:50:05 +0800 |
commit | af99b20e7f04c131ec9ed7398f366640dd8657f7 (patch) | |
tree | 385f3376f82bcf84d4d5f46bce99700bcf10b4fc | |
parent | 12cf84137bbe2837c97f32f89b5ceb0eb99b7d27 (diff) | |
download | dexon-af99b20e7f04c131ec9ed7398f366640dd8657f7.tar dexon-af99b20e7f04c131ec9ed7398f366640dd8657f7.tar.gz dexon-af99b20e7f04c131ec9ed7398f366640dd8657f7.tar.bz2 dexon-af99b20e7f04c131ec9ed7398f366640dd8657f7.tar.lz dexon-af99b20e7f04c131ec9ed7398f366640dd8657f7.tar.xz dexon-af99b20e7f04c131ec9ed7398f366640dd8657f7.tar.zst dexon-af99b20e7f04c131ec9ed7398f366640dd8657f7.zip |
indexer: support fast-sync (#287)
-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 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 |