Versions in this module Expand all Collapse all v1 v1.0.0 Jul 21, 2022 Changes in this version + type AncestorTree interface + Add func(blkID ids.ID, parentID ids.ID) + GetRoot func(blkID ids.ID) ids.ID + Has func(blkID ids.ID) bool + Len func() int + Remove func(blkID ids.ID) + RemoveSubtree func(blkID ids.ID) + func NewAncestorTree() AncestorTree + type Config struct + Consensus snowman.Consensus + Ctx *snow.ConsensusContext + Params snowball.Parameters + Sender common.Sender + VM block.ChainVM + Validators validators.Set + type Engine interface + func New(config Config) (Engine, error) + type EngineTest struct + CantGetBlock bool + GetBlockF func(ids.ID) (snowman.Block, error) + func (e *EngineTest) Default(cant bool) + func (e *EngineTest) GetBlock(blkID ids.ID) (snowman.Block, error) + type Transitive struct + RequestID uint32 + func (m *Transitive) Initialize(namespace string, reg prometheus.Registerer) error + func (t *Transitive) AppGossip(nodeID ids.NodeID, msg []byte) error + func (t *Transitive) AppRequest(nodeID ids.NodeID, requestID uint32, deadline time.Time, request []byte) error + func (t *Transitive) AppRequestFailed(nodeID ids.NodeID, requestID uint32) error + func (t *Transitive) AppResponse(nodeID ids.NodeID, requestID uint32, response []byte) error + func (t *Transitive) Chits(vdr ids.NodeID, requestID uint32, votes []ids.ID) error + func (t *Transitive) Connected(nodeID ids.NodeID, nodeVersion version.Application) error + func (t *Transitive) Context() *snow.ConsensusContext + func (t *Transitive) Disconnected(nodeID ids.NodeID) error + func (t *Transitive) GetBlock(blkID ids.ID) (snowman.Block, error) + func (t *Transitive) GetFailed(nodeID ids.NodeID, requestID uint32) error + func (t *Transitive) GetVM() common.VM + func (t *Transitive) Gossip() error + func (t *Transitive) Halt() + func (t *Transitive) HealthCheck() (interface{}, error) + func (t *Transitive) Notify(msg common.Message) error + func (t *Transitive) PullQuery(nodeID ids.NodeID, requestID uint32, blkID ids.ID) error + func (t *Transitive) PushQuery(vdr ids.NodeID, requestID uint32, blkBytes []byte) error + func (t *Transitive) Put(nodeID ids.NodeID, requestID uint32, blkBytes []byte) error + func (t *Transitive) QueryFailed(vdr ids.NodeID, requestID uint32) error + func (t *Transitive) Shutdown() error + func (t *Transitive) Start(startReqID uint32) error + func (t *Transitive) Timeout() error v1.0.0-alpha Nov 22, 2022