aboutsummaryrefslogtreecommitdiffstats
path: root/indexer/blockchain.go
diff options
context:
space:
mode:
authorbojie <bojie@dexon.org>2019-01-14 20:42:15 +0800
committerWei-Ning Huang <w@dexon.org>2019-03-12 12:19:09 +0800
commit2fc7f8878544bb7b46ce8357a64b9e920195a243 (patch)
tree04122d44b8461f5475fb24839dab193aece99afe /indexer/blockchain.go
parent2d9f86f9a5af14cb2058912deb490640dfd83977 (diff)
downloaddexon-2fc7f8878544bb7b46ce8357a64b9e920195a243.tar
dexon-2fc7f8878544bb7b46ce8357a64b9e920195a243.tar.gz
dexon-2fc7f8878544bb7b46ce8357a64b9e920195a243.tar.bz2
dexon-2fc7f8878544bb7b46ce8357a64b9e920195a243.tar.lz
dexon-2fc7f8878544bb7b46ce8357a64b9e920195a243.tar.xz
dexon-2fc7f8878544bb7b46ce8357a64b9e920195a243.tar.zst
dexon-2fc7f8878544bb7b46ce8357a64b9e920195a243.zip
app: remove pending block logic (#149)
Diffstat (limited to 'indexer/blockchain.go')
-rw-r--r--indexer/blockchain.go5
1 files changed, 0 insertions, 5 deletions
diff --git a/indexer/blockchain.go b/indexer/blockchain.go
index f41c05a15..f3275f882 100644
--- a/indexer/blockchain.go
+++ b/indexer/blockchain.go
@@ -51,9 +51,6 @@ type ReadOnlyBlockChain interface {
GetHeaderByHash(common.Hash) *types.Header
GetHeaderByNumber(number uint64) *types.Header
GetLastNonceInConfirmedBlocks(uint32, common.Address) (uint64, bool)
- GetPending() (*types.Block, *state.StateDB)
- GetPendingBlockByNumber(uint64) *types.Block
- GetPendingHeight() uint64
GetReceiptsByHash(common.Hash) types.Receipts
GetRoundHeight(uint64) (uint64, bool)
GetTd(common.Hash, uint64) *big.Int
@@ -64,10 +61,8 @@ type ReadOnlyBlockChain interface {
HasBlockAndState(common.Hash, uint64) bool
HasHeader(common.Hash, uint64) bool
HasState(common.Hash) bool
- PendingBlock() *types.Block
State() (*state.StateDB, error)
StateAt(root common.Hash) (*state.StateDB, error)
- SubscribeBlockConfirmedEvent(chan<- core.BlockConfirmedEvent) event.Subscription
SubscribeChainEvent(chan<- core.ChainEvent) event.Subscription
SubscribeChainHeadEvent(chan<- core.ChainHeadEvent) event.Subscription
SubscribeChainSideEvent(chan<- core.ChainSideEvent) event.Subscription