diff options
author | bojie <bojie@dexon.org> | 2019-01-14 20:42:15 +0800 |
---|---|---|
committer | Wei-Ning Huang <w@byzantine-lab.io> | 2019-06-12 17:27:21 +0800 |
commit | f587289bc3d5f679c6e92acb817a40a88a19e970 (patch) | |
tree | 55b30e09ee4222973fc935ba83c08ac6f13a24dd /indexer | |
parent | 2b03b31d46e166e70ea82b806db47bb6408282e3 (diff) | |
download | go-tangerine-f587289bc3d5f679c6e92acb817a40a88a19e970.tar go-tangerine-f587289bc3d5f679c6e92acb817a40a88a19e970.tar.gz go-tangerine-f587289bc3d5f679c6e92acb817a40a88a19e970.tar.bz2 go-tangerine-f587289bc3d5f679c6e92acb817a40a88a19e970.tar.lz go-tangerine-f587289bc3d5f679c6e92acb817a40a88a19e970.tar.xz go-tangerine-f587289bc3d5f679c6e92acb817a40a88a19e970.tar.zst go-tangerine-f587289bc3d5f679c6e92acb817a40a88a19e970.zip |
app: remove pending block logic (#149)
Diffstat (limited to 'indexer')
-rw-r--r-- | indexer/blockchain.go | 5 |
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 |