Documentation ¶
Index ¶
- type Config
- type Engine
- func (e *Engine) Chits(ctx context.Context, nodeID ids.NodeID, requestID uint32, preferredID ids.ID, ...) error
- func (e *Engine) Context() *snow.ConsensusContext
- func (e *Engine) GetFailed(ctx context.Context, nodeID ids.NodeID, requestID uint32) error
- func (e *Engine) Gossip(ctx context.Context) error
- func (e *Engine) HealthCheck(ctx context.Context) (interface{}, error)
- func (e *Engine) Notify(ctx context.Context, msg common.Message) error
- func (e *Engine) PullQuery(ctx context.Context, nodeID ids.NodeID, requestID uint32, blkID ids.ID, ...) error
- func (e *Engine) PushQuery(ctx context.Context, nodeID ids.NodeID, requestID uint32, blkBytes []byte, ...) error
- func (e *Engine) Put(ctx context.Context, nodeID ids.NodeID, requestID uint32, blkBytes []byte) error
- func (e *Engine) QueryFailed(ctx context.Context, nodeID ids.NodeID, requestID uint32) error
- func (e *Engine) Shutdown(ctx context.Context) error
- func (e *Engine) Start(ctx context.Context, startReqID uint32) error
- func (*Engine) 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 { common.AllGetsServer Ctx *snow.ConsensusContext VM block.ChainVM Sender common.Sender Validators validators.Manager ConnectedValidators tracker.Peers Params snowball.Parameters Consensus snowman.Consensus PartialSync bool }
Config wraps all the parameters needed for a snowman engine
type Engine ¶
type Engine struct { Config // list of NoOpsHandler for messages dropped by engine common.StateSummaryFrontierHandler common.AcceptedStateSummaryHandler common.AcceptedFrontierHandler common.AcceptedHandler common.AncestorsHandler common.AppHandler validators.Connector // contains filtered or unexported fields }
Engine implements the Engine interface by attempting to fetch all Engine dependencies.
func (*Engine) Context ¶ added in v1.11.11
func (e *Engine) Context() *snow.ConsensusContext
func (*Engine) HealthCheck ¶ added in v1.11.11
func (*Engine) QueryFailed ¶ added in v1.11.11
Source Files ¶
Click to show internal directories.
Click to hide internal directories.