Documentation ¶
Index ¶
- func NewBFTCore(result chan *messages.ConsensusResult) *bftCore
- type BFTPolicy
- func (instance *BFTPolicy) GetConsensusResult() common.ConsensusResult
- func (instance *BFTPolicy) Halt()
- func (instance *BFTPolicy) Initialization(local account.Account, master account.Account, peers []account.Account, ...)
- func (instance *BFTPolicy) Online()
- func (instance *BFTPolicy) PolicyName() string
- func (instance *BFTPolicy) Prepare(account account.Account)
- func (instance *BFTPolicy) Start()
- func (instance *BFTPolicy) ToConsensus(p *common.Proposal) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewBFTCore ¶
func NewBFTCore(result chan *messages.ConsensusResult) *bftCore
Types ¶
type BFTPolicy ¶
type BFTPolicy struct {
// contains filtered or unexported fields
}
func NewBFTPolicy ¶
func NewBFTPolicy(timeout config.ConsensusTimeout) (*BFTPolicy, error)
func (*BFTPolicy) GetConsensusResult ¶
func (instance *BFTPolicy) GetConsensusResult() common.ConsensusResult
func (*BFTPolicy) Initialization ¶
func (*BFTPolicy) PolicyName ¶
Click to show internal directories.
Click to hide internal directories.