Versions in this module Expand all Collapse all v1 v1.0.0 Jul 21, 2022 Changes in this version + const Bootstrapping + const Initializing + const NormalOp + const StateSyncing + var ErrUnknownState = errors.New("unknown state") + type Acceptor interface + Accept func(ctx *ConsensusContext, containerID ids.ID, container []byte) error + type AcceptorGroup interface + DeregisterAcceptor func(chainID ids.ID, acceptorName string) error + RegisterAcceptor func(chainID ids.ID, acceptorName string, acceptor Acceptor, dieOnError bool) error + func NewAcceptorGroup(log logging.Logger) AcceptorGroup + type AcceptorTracker struct + func NewAcceptorTracker() *AcceptorTracker + func (a *AcceptorTracker) Accept(ctx *ConsensusContext, containerID ids.ID, container []byte) error + func (a *AcceptorTracker) IsAccepted(containerID ids.ID) (int, bool) + type ConsensusContext struct + ConsensusAcceptor Acceptor + DecisionAcceptor Acceptor + Registerer prometheus.Registerer + func DefaultConsensusContextTest() *ConsensusContext + func (ctx *ConsensusContext) Executing(b bool) + func (ctx *ConsensusContext) GetState() State + func (ctx *ConsensusContext) IsExecuting() bool + func (ctx *ConsensusContext) IsValidatorOnly() bool + func (ctx *ConsensusContext) SetState(newState State) + func (ctx *ConsensusContext) SetValidatorOnly() + type Context struct + BCLookup ids.AliaserReader + CFLTAssetID ids.ID + ChainID ids.ID + Keystore keystore.BlockchainKeystore + Lock sync.RWMutex + Log logging.Logger + Metrics metrics.OptionalGatherer + NetworkID uint32 + NodeID ids.NodeID + SNLookup SubnetLookup + SharedMemory atomic.SharedMemory + StakingCertLeaf *x509.Certificate + StakingLeafSigner crypto.Signer + SubnetID ids.ID + ValidatorState validators.State + XChainID ids.ID + func DefaultContextTest() *Context + type ContextInitializable interface + InitCtx func(ctx *Context) + type State uint8 + func (st State) String() string + type SubnetLookup interface + SubnetID func(chainID ids.ID) (ids.ID, error) v1.0.0-alpha Nov 22, 2022