Documentation
¶
Index ¶
- func IsAckSignValidate(va *protos.ConfirmAckBlock) bool
- type ActiveTrx
- type BlockProcessor
- type BlockReceivedVotes
- type DPoS
- func (dps *DPoS) GetOnlineRepresentatives() []*types.Address
- func (dps *DPoS) GetP2PService() p2p.Service
- func (dps *DPoS) Init() error
- func (dps *DPoS) ReceiveConfirmAck(v interface{})
- func (dps *DPoS) ReceiveConfirmReq(v interface{})
- func (dps *DPoS) ReceivePublish(v interface{})
- func (dps *DPoS) ReceiveSyncBlock(v interface{})
- func (dps *DPoS) Start() error
- func (dps *DPoS) Stop() error
- type Election
- type Votes
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IsAckSignValidate ¶
func IsAckSignValidate(va *protos.ConfirmAckBlock) bool
Types ¶
type ActiveTrx ¶
type ActiveTrx struct {
// contains filtered or unexported fields
}
func NewActiveTrx ¶
func NewActiveTrx() *ActiveTrx
func (*ActiveTrx) SetDposService ¶
type BlockProcessor ¶
type BlockProcessor struct {
// contains filtered or unexported fields
}
func NewBlockProcessor ¶
func NewBlockProcessor() *BlockProcessor
func (*BlockProcessor) SetDpos ¶
func (bp *BlockProcessor) SetDpos(dp *DPoS)
func (*BlockProcessor) Start ¶
func (bp *BlockProcessor) Start()
func (*BlockProcessor) Stop ¶
func (bp *BlockProcessor) Stop()
type BlockReceivedVotes ¶ added in v0.0.9
type BlockReceivedVotes struct {
// contains filtered or unexported fields
}
type DPoS ¶ added in v0.0.9
type DPoS struct {
// contains filtered or unexported fields
}
func (*DPoS) GetOnlineRepresentatives ¶ added in v0.0.9
func (*DPoS) GetP2PService ¶ added in v0.0.9
func (*DPoS) ReceiveConfirmAck ¶ added in v0.0.9
func (dps *DPoS) ReceiveConfirmAck(v interface{})
func (*DPoS) ReceiveConfirmReq ¶ added in v0.0.9
func (dps *DPoS) ReceiveConfirmReq(v interface{})
func (*DPoS) ReceivePublish ¶ added in v0.0.9
func (dps *DPoS) ReceivePublish(v interface{})
func (*DPoS) ReceiveSyncBlock ¶ added in v0.0.9
func (dps *DPoS) ReceiveSyncBlock(v interface{})
type Election ¶
type Election struct {
// contains filtered or unexported fields
}
func NewElection ¶
func NewElection(dps *DPoS, block *types.StateBlock) (*Election, error)
Click to show internal directories.
Click to hide internal directories.