Documentation ¶
Index ¶
- func NewFetcher(address string, f syncer.Fetcher) *fetcher
- type BCPool
- func (self *BCPool) AddBlock(block common.Block)
- func (self *BCPool) AddDirectBlock(block common.Block) error
- func (self *BCPool) AddTail(block common.Block) error
- func (self *BCPool) CurrentChain() Chain
- func (self *BCPool) CurrentModifyToChain(target Chain) error
- func (self *BCPool) ExistInCurrent(request face.FetchRequest) bool
- func (self *BCPool) LongestChain() Chain
- func (self *BCPool) Rollback(rollbackHeight uint64, rollbackHash string) error
- type BlockPool
- type BlockVerifySuccessStat
- type ByHeight
- type ByTailHeight
- type Chain
- type ChainReader
- type ForkChainError
- type PoolBlock
- type PoolReader
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type BCPool ¶
type BCPool struct { Id string // contains filtered or unexported fields }
func (*BCPool) ExistInCurrent ¶
func (self *BCPool) ExistInCurrent(request face.FetchRequest) bool
type BlockPool ¶
type BlockPool interface { face.PoolWriter face.PoolReader Start() Stop() Init(syncer.Fetcher) Info(string) string }
type BlockVerifySuccessStat ¶
type BlockVerifySuccessStat struct { }
func (*BlockVerifySuccessStat) Reset ¶
func (self *BlockVerifySuccessStat) Reset()
func (*BlockVerifySuccessStat) VerifyResult ¶
func (self *BlockVerifySuccessStat) VerifyResult() verifier.VerifyResult
type ByTailHeight ¶
type ByTailHeight []*snippetChain
func (ByTailHeight) Len ¶
func (a ByTailHeight) Len() int
func (ByTailHeight) Less ¶
func (a ByTailHeight) Less(i, j int) bool
func (ByTailHeight) Swap ¶
func (a ByTailHeight) Swap(i, j int)
type Chain ¶
type ChainReader ¶
type ForkChainError ¶
type ForkChainError struct {
What string
}
func (ForkChainError) Error ¶
func (e ForkChainError) Error() string
type PoolBlock ¶
type PoolBlock struct {
// contains filtered or unexported fields
}
Click to show internal directories.
Click to hide internal directories.