Documentation ¶
Index ¶
- func NewFBFTCore(local account.Account, blockSwitch chan<- interface{}) *fbftCore
- type FBFTPolicy
- func (self *FBFTPolicy) GetConsensusResult() common.ConsensusResult
- func (instance *FBFTPolicy) Halt()
- func (instance *FBFTPolicy) Initialization(role map[account.Account]commonr.Roler, peers []account.Account, ...) error
- func (instance *FBFTPolicy) PolicyName() string
- func (instance *FBFTPolicy) Start()
- func (instance *FBFTPolicy) ToConsensus(p *common.Proposal) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewFBFTCore ¶
Types ¶
type FBFTPolicy ¶
type FBFTPolicy struct {
// contains filtered or unexported fields
}
func NewFBFTPolicy ¶
func NewFBFTPolicy(account account.Account, timeout int64, blockSwitch chan<- interface{}) (*FBFTPolicy, error)
func (*FBFTPolicy) GetConsensusResult ¶
func (self *FBFTPolicy) GetConsensusResult() common.ConsensusResult
func (*FBFTPolicy) Halt ¶
func (instance *FBFTPolicy) Halt()
func (*FBFTPolicy) Initialization ¶
func (instance *FBFTPolicy) Initialization(role map[account.Account]commonr.Roler, peers []account.Account, events types.EventCenter) error
func (*FBFTPolicy) PolicyName ¶
func (instance *FBFTPolicy) PolicyName() string
func (*FBFTPolicy) Start ¶
func (instance *FBFTPolicy) Start()
func (*FBFTPolicy) ToConsensus ¶
func (instance *FBFTPolicy) ToConsensus(p *common.Proposal) error
Click to show internal directories.
Click to hide internal directories.