Documentation ¶
Index ¶
- type Bootstrapper
- func (b *Bootstrapper) Connected(validatorID ids.ShortID) error
- func (b *Bootstrapper) CurrentAcceptedFrontier() []ids.ID
- func (b *Bootstrapper) Disconnected(validatorID ids.ShortID) error
- func (b *Bootstrapper) FilterAccepted(containerIDs []ids.ID) []ids.ID
- func (b *Bootstrapper) ForceAccepted(acceptedContainerIDs []ids.ID) error
- func (b *Bootstrapper) GetAncestorsFailed(vdr ids.ShortID, requestID uint32) error
- func (b *Bootstrapper) Initialize(config Config, onFinished func() error, namespace string, ...) error
- func (b *Bootstrapper) MultiPut(vdr ids.ShortID, requestID uint32, vtxs [][]byte) error
- type Config
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Bootstrapper ¶
type Bootstrapper struct { common.Bootstrapper common.Fetcher // VtxBlocked tracks operations that are blocked on vertices // TxBlocked tracks operations that are blocked on transactions VtxBlocked, TxBlocked *queue.Jobs Manager vertex.Manager VM vertex.DAGVM // contains filtered or unexported fields }
Bootstrapper ...
func (*Bootstrapper) Connected ¶
func (b *Bootstrapper) Connected(validatorID ids.ShortID) error
Connected implements the Engine interface.
func (*Bootstrapper) CurrentAcceptedFrontier ¶
func (b *Bootstrapper) CurrentAcceptedFrontier() []ids.ID
CurrentAcceptedFrontier returns the set of vertices that this node has accepted that have no accepted children
func (*Bootstrapper) Disconnected ¶
func (b *Bootstrapper) Disconnected(validatorID ids.ShortID) error
Disconnected implements the Engine interface.
func (*Bootstrapper) FilterAccepted ¶
func (b *Bootstrapper) FilterAccepted(containerIDs []ids.ID) []ids.ID
FilterAccepted returns the IDs of vertices in [containerIDs] that this node has accepted
func (*Bootstrapper) ForceAccepted ¶
func (b *Bootstrapper) ForceAccepted(acceptedContainerIDs []ids.ID) error
ForceAccepted starts bootstrapping. Process the vertices in [accepterContainerIDs].
func (*Bootstrapper) GetAncestorsFailed ¶
func (b *Bootstrapper) GetAncestorsFailed(vdr ids.ShortID, requestID uint32) error
GetAncestorsFailed is called when a GetAncestors message we sent fails
func (*Bootstrapper) Initialize ¶
func (b *Bootstrapper) Initialize( config Config, onFinished func() error, namespace string, registerer prometheus.Registerer, ) error
Initialize this engine.
Click to show internal directories.
Click to hide internal directories.