bootstrap

package
v1.7.3-rc.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 20, 2021 License: BSD-3-Clause Imports: 14 Imported by: 9

Documentation

Index

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.JobsWithMissing

	VM block.ChainVM

	Bootstrapped func()
	// contains filtered or unexported fields
}

func (*Bootstrapper) Connected added in v0.8.2

func (b *Bootstrapper) Connected(nodeID ids.ShortID, nodeVersion version.Application) error

Connected implements the Engine interface.

func (*Bootstrapper) CurrentAcceptedFrontier

func (b *Bootstrapper) CurrentAcceptedFrontier() ([]ids.ID, error)

CurrentAcceptedFrontier returns the last accepted block

func (*Bootstrapper) Disconnected added in v0.8.2

func (b *Bootstrapper) Disconnected(nodeID ids.ShortID) error

Disconnected implements the Engine interface.

func (*Bootstrapper) FilterAccepted

func (b *Bootstrapper) FilterAccepted(containerIDs []ids.ID) []ids.ID

FilterAccepted returns the blocks in [containerIDs] that we have accepted

func (*Bootstrapper) ForceAccepted

func (b *Bootstrapper) ForceAccepted(acceptedContainerIDs []ids.ID) error

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.

func (*Bootstrapper) MultiPut

func (b *Bootstrapper) MultiPut(vdr ids.ShortID, requestID uint32, blks [][]byte) error

MultiPut handles the receipt of multiple containers. Should be received in response to a GetAncestors message to [vdr] with request ID [requestID]

func (*Bootstrapper) Timeout added in v1.4.4

func (b *Bootstrapper) Timeout() error

type Config

type Config struct {
	common.Config

	// Blocked tracks operations that are blocked on blocks
	Blocked *queue.JobsWithMissing

	VM block.ChainVM

	Bootstrapped func()
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL