diff options
author | bojie <bojie@dexon.org> | 2019-03-07 17:35:31 +0800 |
---|---|---|
committer | Wei-Ning Huang <w@byzantine-lab.io> | 2019-06-12 17:27:22 +0800 |
commit | 70a3d62d99f09b04f28c2f3542f90b502f4c2779 (patch) | |
tree | ce27dc002a158b75c2d49ee0313ef5ef358902a5 /indexer | |
parent | dd570bf6d35cdfcbfe4df3aa52755cf2735bb63e (diff) | |
download | go-tangerine-70a3d62d99f09b04f28c2f3542f90b502f4c2779.tar go-tangerine-70a3d62d99f09b04f28c2f3542f90b502f4c2779.tar.gz go-tangerine-70a3d62d99f09b04f28c2f3542f90b502f4c2779.tar.bz2 go-tangerine-70a3d62d99f09b04f28c2f3542f90b502f4c2779.tar.lz go-tangerine-70a3d62d99f09b04f28c2f3542f90b502f4c2779.tar.xz go-tangerine-70a3d62d99f09b04f28c2f3542f90b502f4c2779.tar.zst go-tangerine-70a3d62d99f09b04f28c2f3542f90b502f4c2779.zip |
app: refactor app run as single chain (#226)
Diffstat (limited to 'indexer')
-rw-r--r-- | indexer/blockchain.go | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/indexer/blockchain.go b/indexer/blockchain.go index f3275f882..910305f9c 100644 --- a/indexer/blockchain.go +++ b/indexer/blockchain.go @@ -3,9 +3,6 @@ package indexer import ( "math/big" - coreCommon "github.com/dexon-foundation/dexon-consensus/common" - coreTypes "github.com/dexon-foundation/dexon-consensus/core/types" - "github.com/dexon-foundation/dexon/common" "github.com/dexon-foundation/dexon/consensus" "github.com/dexon-foundation/dexon/core" @@ -29,12 +26,6 @@ type ReadOnlyBlockChain interface { GasLimit() uint64 Genesis() *types.Block GetAncestor(common.Hash, uint64, uint64, *uint64) (common.Hash, uint64) - GetAddressInfo(uint32, common.Address) ( - info struct { - Nonce uint64 - Cost *big.Int - Counter uint64 - }) GetBlock(common.Hash, uint64) *types.Block GetBlockByHash(common.Hash) *types.Block GetBlockByNumber(uint64) *types.Block @@ -42,15 +33,11 @@ type ReadOnlyBlockChain interface { GetBlocksFromHash(common.Hash, int) (blocks []*types.Block) GetBody(common.Hash) *types.Body GetBodyRLP(common.Hash) rlp.RawValue - GetChainLastConfirmedHeight(uint32) (uint64, bool) - GetConfirmedBlockByHash(uint32, coreCommon.Hash) (*coreTypes.Block, types.Transactions) - GetCostInConfirmedBlocks(uint32, common.Address) (*big.Int, bool) GetGovStateByHash(common.Hash) (*types.GovState, error) GetGovStateByNumber(uint64) (*types.GovState, error) GetHeader(common.Hash, uint64) *types.Header GetHeaderByHash(common.Hash) *types.Header GetHeaderByNumber(number uint64) *types.Header - GetLastNonceInConfirmedBlocks(uint32, common.Address) (uint64, bool) GetReceiptsByHash(common.Hash) types.Receipts GetRoundHeight(uint64) (uint64, bool) GetTd(common.Hash, uint64) *big.Int |