Documentation ¶
Index ¶
- type ConsensusSoloImpl
- func (consensus *ConsensusSoloImpl) CanProposeBlock() bool
- func (consensus *ConsensusSoloImpl) GetConsensusStateJSON() ([]byte, error)
- func (consensus *ConsensusSoloImpl) GetLastHeight() uint64
- func (consensus *ConsensusSoloImpl) GetValidators() ([]string, error)
- func (consensus *ConsensusSoloImpl) OnMessage(message *msgbus.Message)
- func (consensus *ConsensusSoloImpl) OnQuit()
- func (consensus *ConsensusSoloImpl) Start() error
- func (consensus *ConsensusSoloImpl) Stop() error
- func (consensus *ConsensusSoloImpl) VerifyBlockSignatures(block *common.Block) error
- type SoloState
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ConsensusSoloImpl ¶
type ConsensusSoloImpl struct {
// contains filtered or unexported fields
}
ConsensusSoloImpl is the implementation of solo algorithm and it implements the ConsensusEngine interface.
func (*ConsensusSoloImpl) CanProposeBlock ¶
func (consensus *ConsensusSoloImpl) CanProposeBlock() bool
CanProposeBlock ...
func (*ConsensusSoloImpl) GetConsensusStateJSON ¶
func (consensus *ConsensusSoloImpl) GetConsensusStateJSON() ([]byte, error)
func (*ConsensusSoloImpl) GetLastHeight ¶
func (consensus *ConsensusSoloImpl) GetLastHeight() uint64
func (*ConsensusSoloImpl) GetValidators ¶
func (consensus *ConsensusSoloImpl) GetValidators() ([]string, error)
func (*ConsensusSoloImpl) OnMessage ¶
func (consensus *ConsensusSoloImpl) OnMessage(message *msgbus.Message)
OnMessage receive core busmsg and process block
func (*ConsensusSoloImpl) Start ¶
func (consensus *ConsensusSoloImpl) Start() error
Start implements the Init method of ConsensusEngine interface.
func (*ConsensusSoloImpl) Stop ¶
func (consensus *ConsensusSoloImpl) Stop() error
Stop implements the Stop method of ConsensusEngine interface. TODO: implement Stop method
func (*ConsensusSoloImpl) VerifyBlockSignatures ¶
func (consensus *ConsensusSoloImpl) VerifyBlockSignatures(block *common.Block) error
TODO
Click to show internal directories.
Click to hide internal directories.