Versions in this module Expand all Collapse all v1 v1.1.0 Jun 19, 2022 Changes in this version + const Bootstrapping + const NormalOp + var ErrUnknownState = errors.New("unknown node state") + type Acceptor interface + Accept func(ctx *ConsensusContext, containerID ids.ID, container []byte) error + type ConsensusContext struct + ConsensusDispatcher EventDispatcher + DecisionDispatcher EventDispatcher + 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 + ChainID ids.ID + DJTXAssetID ids.ID + Keystore keystore.BlockchainKeystore + Lock sync.RWMutex + Log logging.Logger + Metrics metrics.OptionalGatherer + NetworkID uint32 + NodeID ids.ShortID + 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 EventDispatcher interface + type EventDispatcherTracker struct + func NewEventDispatcherTracker() *EventDispatcherTracker + func (evd *EventDispatcherTracker) Accept(ctx *ConsensusContext, containerID ids.ID, container []byte) error + func (evd *EventDispatcherTracker) IsAccepted(containerID ids.ID) (int, bool) + func (evd *EventDispatcherTracker) IsIssued(containerID ids.ID) (int, bool) + func (evd *EventDispatcherTracker) IsRejected(containerID ids.ID) (int, bool) + func (evd *EventDispatcherTracker) Issue(ctx *ConsensusContext, containerID ids.ID, container []byte) error + func (evd *EventDispatcherTracker) Reject(ctx *ConsensusContext, containerID ids.ID, container []byte) error + type Issuer interface + Issue func(ctx *ConsensusContext, containerID ids.ID, container []byte) error + type Rejector interface + Reject func(ctx *ConsensusContext, containerID ids.ID, container []byte) error + type State uint8 + func (st State) String() string + type SubnetLookup interface + SubnetID func(chainID ids.ID) (ids.ID, error)