Documentation ¶
Index ¶
- type Config
- type Engine
- type EngineTest
- type Transitive
- func (t *Transitive) Chits(ctx context.Context, nodeID ids.NodeID, requestID uint32, votes []ids.ID, ...) error
- func (t *Transitive) Context() *snow.ConsensusContext
- func (t *Transitive) GetFailed(ctx context.Context, nodeID ids.NodeID, requestID uint32) error
- func (t *Transitive) GetVM() common.VM
- func (t *Transitive) GetVtx(ctx context.Context, vtxID ids.ID) (avalanche.Vertex, error)
- func (t *Transitive) Gossip(ctx context.Context) error
- func (*Transitive) Halt(context.Context)
- func (t *Transitive) HealthCheck(ctx context.Context) (interface{}, error)
- func (m *Transitive) Initialize(namespace string, reg prometheus.Registerer) error
- func (t *Transitive) Notify(ctx context.Context, msg common.Message) error
- func (t *Transitive) PullQuery(ctx context.Context, nodeID ids.NodeID, requestID uint32, vtxID ids.ID) error
- func (t *Transitive) PushQuery(ctx context.Context, nodeID ids.NodeID, requestID uint32, vtxBytes []byte) error
- func (t *Transitive) Put(ctx context.Context, nodeID ids.NodeID, requestID uint32, vtxBytes []byte) error
- func (t *Transitive) QueryFailed(ctx context.Context, nodeID ids.NodeID, requestID uint32) error
- func (t *Transitive) Shutdown(ctx context.Context) error
- func (t *Transitive) Start(ctx context.Context, startReqID uint32) error
- func (*Transitive) Timeout(context.Context) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { Ctx *snow.ConsensusContext common.AllGetsServer VM vertex.LinearizableVM Manager vertex.Manager Sender common.Sender Validators validators.Set Params avalanche.Parameters Consensus avalanche.Consensus }
Config wraps all the parameters needed for an avalanche engine
type Engine ¶
type Engine interface { common.Engine // GetVtx returns a vertex by its ID. // Returns an error if unknown. GetVtx(ctx context.Context, vtxID ids.ID) (avalanche.Vertex, error) }
Engine describes the events that can occur on a consensus instance
type EngineTest ¶ added in v1.7.5
type EngineTest struct { common.EngineTest CantGetVtx bool GetVtxF func(ctx context.Context, vtxID ids.ID) (avalanche.Vertex, error) }
EngineTest is a test engine
func (*EngineTest) Default ¶ added in v1.7.5
func (e *EngineTest) Default(cant bool)
type Transitive ¶
type Transitive struct { Config // list of NoOpsHandler for messages dropped by engine common.StateSummaryFrontierHandler common.AcceptedStateSummaryHandler common.AcceptedFrontierHandler common.AcceptedHandler common.AncestorsHandler common.AppHandler validators.Connector RequestID uint32 // contains filtered or unexported fields }
Transitive implements the Engine interface by attempting to fetch all transitive dependencies.
func (*Transitive) Context ¶
func (t *Transitive) Context() *snow.ConsensusContext
func (*Transitive) GetVM ¶ added in v1.3.2
func (t *Transitive) GetVM() common.VM
func (*Transitive) Halt ¶ added in v1.7.4
func (*Transitive) Halt(context.Context)
func (*Transitive) HealthCheck ¶ added in v1.2.1
func (t *Transitive) HealthCheck(ctx context.Context) (interface{}, error)
func (*Transitive) Initialize ¶
func (m *Transitive) Initialize(namespace string, reg prometheus.Registerer) error
func (*Transitive) QueryFailed ¶
Source Files ¶
Directories ¶
Path | Synopsis |
---|---|
Package state manages the meta-data required by consensus for an avalanche dag.
|
Package state manages the meta-data required by consensus for an avalanche dag. |
Package vertex is a generated GoMock package.
|
Package vertex is a generated GoMock package. |
Click to show internal directories.
Click to hide internal directories.