solo

package
v1.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 9, 2019 License: Apache-2.0 Imports: 9 Imported by: 1

Documentation

Index

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL