Documentation ¶
Index ¶
- type SoloPolicy
- func (instance *SoloPolicy) GetConsensusResult() common.ConsensusResult
- func (instance *SoloPolicy) Halt()
- func (instance *SoloPolicy) Initialization(local account.Account, master account.Account, accounts []account.Account, ...)
- func (instance *SoloPolicy) Online()
- func (instance *SoloPolicy) PolicyName() string
- func (instance *SoloPolicy) Prepare(account account.Account)
- func (instance *SoloPolicy) Start()
- func (instance *SoloPolicy) ToConsensus(p *common.Proposal) error
- type SoloProposal
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type SoloPolicy ¶
type SoloPolicy struct {
// contains filtered or unexported fields
}
func NewSoloPolicy ¶
func NewSoloPolicy(blkSwitch chan<- interface{}, enable bool, signVerify config.SignatureVerifySwitch) (*SoloPolicy, error)
func (*SoloPolicy) GetConsensusResult ¶
func (instance *SoloPolicy) GetConsensusResult() common.ConsensusResult
func (*SoloPolicy) Halt ¶
func (instance *SoloPolicy) Halt()
func (*SoloPolicy) Initialization ¶
func (instance *SoloPolicy) Initialization(local account.Account, master account.Account, accounts []account.Account, event types.EventCenter, onLine bool)
func (*SoloPolicy) Online ¶ added in v0.3.0
func (instance *SoloPolicy) Online()
func (*SoloPolicy) PolicyName ¶
func (instance *SoloPolicy) PolicyName() string
func (*SoloPolicy) Prepare ¶ added in v1.0.0
func (instance *SoloPolicy) Prepare(account account.Account)
func (*SoloPolicy) Start ¶
func (instance *SoloPolicy) Start()
func (*SoloPolicy) ToConsensus ¶
func (instance *SoloPolicy) ToConsensus(p *common.Proposal) error
to get consensus
type SoloProposal ¶
type SoloProposal struct {
// contains filtered or unexported fields
}
SoloProposal that with solo policy
Click to show internal directories.
Click to hide internal directories.