Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BCPool ¶
type BCPool struct { Id string LIMIT_HEIGHT uint64 LIMIT_LONGEST_NUM uint64 // contains filtered or unexported fields }
func (*BCPool) CurrentChain ¶
func (*BCPool) CurrentModifyToChain ¶
func (*BCPool) CurrentModifyToEmpty ¶
func (*BCPool) LongestChain ¶
type BlockPool ¶
type BlockPool interface { PoolWriter PoolReader Start() Stop() // todo need use subscribe net Init(s syncer) Info(addr *types.Address) string }
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 ChainReader ¶
type ChainReader interface { Head() commonBlock GetBlock(height uint64) commonBlock }
type ForkChainError ¶
type ForkChainError struct {
What string
}
func (ForkChainError) Error ¶
func (e ForkChainError) Error() string
type ForkVersion ¶
type ForkVersion struct {
// contains filtered or unexported fields
}
func (*ForkVersion) Inc ¶
func (self *ForkVersion) Inc()
func (*ForkVersion) String ¶
func (self *ForkVersion) String() string
func (*ForkVersion) Val ¶
func (self *ForkVersion) Val() int
type PoolReader ¶
type PoolWriter ¶
type PoolWriter interface { // for normal account AddDirectAccountBlock(address types.Address, vmAccountBlock *vm_context.VmAccountBlock) error // for contract account AddDirectAccountBlocks(address types.Address, received *vm_context.VmAccountBlock, sendBlocks []*vm_context.VmAccountBlock) error }
Click to show internal directories.
Click to hide internal directories.