Documentation ¶
Index ¶
- type Bootstrapper
- func (b *Bootstrapper) Connected(validatorID ids.ShortID) error
- func (b *Bootstrapper) CurrentAcceptedFrontier() ids.Set
- func (b *Bootstrapper) Disconnected(validatorID ids.ShortID) error
- func (b *Bootstrapper) FilterAccepted(containerIDs ids.Set) ids.Set
- func (b *Bootstrapper) ForceAccepted(acceptedContainerIDs ids.Set) 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, blks [][]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 // Blocked tracks operations that are blocked on blocks Blocked *queue.Jobs VM block.ChainVM Bootstrapped func() // contains filtered or unexported fields }
Bootstrapper ...
func (*Bootstrapper) Connected ¶ added in v0.8.2
func (b *Bootstrapper) Connected(validatorID ids.ShortID) error
Connected implements the Engine interface.
func (*Bootstrapper) CurrentAcceptedFrontier ¶
func (b *Bootstrapper) CurrentAcceptedFrontier() ids.Set
CurrentAcceptedFrontier returns the last accepted block
func (*Bootstrapper) Disconnected ¶ added in v0.8.2
func (b *Bootstrapper) Disconnected(validatorID ids.ShortID) error
Disconnected implements the Engine interface.
func (*Bootstrapper) FilterAccepted ¶
func (b *Bootstrapper) FilterAccepted(containerIDs ids.Set) ids.Set
FilterAccepted returns the blocks in [containerIDs] that we have accepted
func (*Bootstrapper) ForceAccepted ¶
func (b *Bootstrapper) ForceAccepted(acceptedContainerIDs ids.Set) error
ForceAccepted ...
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.