Documentation ¶
Index ¶
- Variables
- type Cycle
- type DPos
- func (d *DPos) CheckCreator(header types.IHeader, parent types.IHeader, chain blockchain.IChain) error
- func (d *DPos) CheckHeader(header types.IHeader, parent types.IHeader, chain blockchain.IChain) error
- func (d *DPos) CheckSeal(header types.IHeader, parent types.IHeader, chain blockchain.IChain) error
- func (d *DPos) CheckSigner(header types.IHeader, chain blockchain.IChain) error
- func (d *DPos) CheckTime(header types.IHeader, chain blockchain.IChain) error
- func (d *DPos) Confirmed() uint64
- func (d *DPos) GenesisBlock() types.IBlock
- func (d *DPos) SetConfirmed(confirmed uint64)
- func (d *DPos) SuperIds() []string
Constants ¶
This section is empty.
Variables ¶
View Source
var Err_Elected = errors.New("the election has been passed")
Functions ¶
This section is empty.
Types ¶
type Cycle ¶
type Cycle struct {
DPosStatus dpos.IDPosStatus
}
func (*Cycle) CheckCycle ¶
func (c *Cycle) CheckCycle(chain blockchain.IChain, preTime, time uint64) error
type DPos ¶
type DPos struct {
// contains filtered or unexported fields
}
func NewDPos ¶
func NewDPos(dPosStatus dpos.IDPosStatus) *DPos
func (*DPos) CheckCreator ¶
func (*DPos) CheckHeader ¶
func (*DPos) CheckSigner ¶
func (*DPos) GenesisBlock ¶
func (*DPos) SetConfirmed ¶
Click to show internal directories.
Click to hide internal directories.