aboutsummaryrefslogtreecommitdiffstats
path: root/indexer
diff options
context:
space:
mode:
authorbojie <bojie@dexon.org>2019-03-07 17:35:31 +0800
committerWei-Ning Huang <w@dexon.org>2019-04-09 21:32:57 +0800
commit670829960df41b0a65ae6f179c7e717fa028f542 (patch)
treed4d97c2beffaf3bbe0c54872ed561e7545dbf041 /indexer
parent1835ee6f172f2e4e15132425e4fe6060f02a9537 (diff)
downloaddexon-670829960df41b0a65ae6f179c7e717fa028f542.tar
dexon-670829960df41b0a65ae6f179c7e717fa028f542.tar.gz
dexon-670829960df41b0a65ae6f179c7e717fa028f542.tar.bz2
dexon-670829960df41b0a65ae6f179c7e717fa028f542.tar.lz
dexon-670829960df41b0a65ae6f179c7e717fa028f542.tar.xz
dexon-670829960df41b0a65ae6f179c7e717fa028f542.tar.zst
dexon-670829960df41b0a65ae6f179c7e717fa028f542.zip
app: refactor app run as single chain (#226)
Diffstat (limited to 'indexer')
-rw-r--r--indexer/blockchain.go13
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