Documentation ¶
Index ¶
- func NewFBFTCore(local account.Account, blockSwitch chan<- interface{}) *fbftCore
- type FBFTPolicy
- func (instance *FBFTPolicy) GetConsensusResult() common.ConsensusResult
- func (instance *FBFTPolicy) Halt()
- func (instance *FBFTPolicy) Initialization(master account.Account, peers []account.Account, events types.EventCenter, ...) error
- func (instance *FBFTPolicy) Online()
- 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 (instance *FBFTPolicy) GetConsensusResult() common.ConsensusResult
func (*FBFTPolicy) Halt ¶
func (instance *FBFTPolicy) Halt()
func (*FBFTPolicy) Initialization ¶
func (instance *FBFTPolicy) Initialization(master account.Account, peers []account.Account, events types.EventCenter, onLine bool) error
func (*FBFTPolicy) Online ¶ added in v0.3.0
func (instance *FBFTPolicy) Online()
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.