Documentation ¶
Index ¶
- func NewFBFTCore(blockSwitch chan<- interface{}, timer config.ConsensusTimeout, emptyBlock bool, ...) *fbftCore
- type FBFTPolicy
- func (instance *FBFTPolicy) GetConsensusResult() common.ConsensusResult
- func (instance *FBFTPolicy) Halt()
- func (instance *FBFTPolicy) Initialization(local account.Account, master account.Account, peers []account.Account, ...)
- func (instance *FBFTPolicy) Online()
- func (instance *FBFTPolicy) PolicyName() string
- func (instance *FBFTPolicy) Prepare(account account.Account)
- 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 ¶
func NewFBFTCore(blockSwitch chan<- interface{}, timer config.ConsensusTimeout, emptyBlock bool, signatureVerify config.SignatureVerifySwitch) *fbftCore
Types ¶
type FBFTPolicy ¶
type FBFTPolicy struct {
// contains filtered or unexported fields
}
func NewFBFTPolicy ¶
func NewFBFTPolicy(timeout config.ConsensusTimeout, blockSwitch chan<- interface{}, emptyBlock bool, signVerify config.SignatureVerifySwitch) (*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(local account.Account, master account.Account, peers []account.Account, events types.EventCenter, onLine bool)
func (*FBFTPolicy) Online ¶ added in v0.3.0
func (instance *FBFTPolicy) Online()
func (*FBFTPolicy) PolicyName ¶
func (instance *FBFTPolicy) PolicyName() string
func (*FBFTPolicy) Prepare ¶ added in v1.0.0
func (instance *FBFTPolicy) Prepare(account account.Account)
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.