bootstrap

package
v1.22.46 Latest Latest
Warning

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

Go to latest
Published: Dec 26, 2025 License: BSD-3-Clause Imports: 2 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Bootstrapper

type Bootstrapper interface {
	// Start starts bootstrapping
	Start(context.Context, uint32) error

	// Connected notifies the bootstrapper of a connected validator
	Connected(context.Context, ids.NodeID, Version) error

	// Disconnected notifies the bootstrapper of a disconnected validator
	Disconnected(context.Context, ids.NodeID) error

	// HealthCheck performs a health check
	HealthCheck(context.Context) (interface{}, error)
}

Bootstrapper bootstraps a chain

func New

func New() Bootstrapper

New creates a new bootstrapper

type Version

type Version uint32

Version represents protocol version

Jump to

Keyboard shortcuts

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