Documentation ¶
Index ¶
- func NewDBFTCore(result chan *messages.ConsensusResult) *dbftCore
- type DBFTPolicy
- func (instance *DBFTPolicy) GetConsensusResult() common.ConsensusResult
- func (instance *DBFTPolicy) Halt()
- func (instance *DBFTPolicy) Initialization(local account.Account, master account.Account, peers []account.Account, ...)
- func (instance *DBFTPolicy) Online()
- func (instance *DBFTPolicy) PolicyName() string
- func (instance *DBFTPolicy) Prepare(account account.Account)
- func (instance *DBFTPolicy) Start()
- func (instance *DBFTPolicy) ToConsensus(p *common.Proposal) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewDBFTCore ¶
func NewDBFTCore(result chan *messages.ConsensusResult) *dbftCore
Types ¶
type DBFTPolicy ¶
type DBFTPolicy struct {
// contains filtered or unexported fields
}
func NewDBFTPolicy ¶
func NewDBFTPolicy(timeout config.ConsensusTimeout) (*DBFTPolicy, error)
func (*DBFTPolicy) GetConsensusResult ¶
func (instance *DBFTPolicy) GetConsensusResult() common.ConsensusResult
func (*DBFTPolicy) Halt ¶
func (instance *DBFTPolicy) Halt()
func (*DBFTPolicy) Initialization ¶
func (instance *DBFTPolicy) Initialization(local account.Account, master account.Account, peers []account.Account, events types.EventCenter, onLine bool)
func (*DBFTPolicy) Online ¶ added in v0.3.0
func (instance *DBFTPolicy) Online()
func (*DBFTPolicy) PolicyName ¶
func (instance *DBFTPolicy) PolicyName() string
func (*DBFTPolicy) Prepare ¶ added in v1.0.0
func (instance *DBFTPolicy) Prepare(account account.Account)
func (*DBFTPolicy) Start ¶
func (instance *DBFTPolicy) Start()
func (*DBFTPolicy) ToConsensus ¶
func (instance *DBFTPolicy) ToConsensus(p *common.Proposal) error
Click to show internal directories.
Click to hide internal directories.