stop

package
v0.44.0 Latest Latest
Warning

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

Go to latest
Published: Nov 20, 2025 License: AGPL-3.0 Imports: 8 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type StopControl

type StopControl struct {
	component.Component
	// contains filtered or unexported fields
}

StopControl is responsible for managing the stopping behavior of the node when an incompatible block height is encountered.

func NewStopControl

func NewStopControl(
	log zerolog.Logger,
) *StopControl

NewStopControl creates a new StopControl instance.

Parameters:

  • log: The logger used for logging.

Returns:

  • A pointer to the newly created StopControl instance.

func (*StopControl) OnVersionUpdate

func (sc *StopControl) OnVersionUpdate(height uint64, version *semver.Version)

OnVersionUpdate is called when a version update occurs.

It updates the incompatible block height and the expected node version based on the provided height and semver.

Parameters:

  • height: The block height that is incompatible with the current node version.
  • version: The new semantic version object that is expected for compatibility.

func (*StopControl) RegisterHeightRecorder

func (sc *StopControl) RegisterHeightRecorder(recorder execution_data.ProcessedHeightRecorder)

RegisterHeightRecorder registers an execution data height recorder with the StopControl.

Parameters:

  • recorder: The execution data height recorder to register.

type VersionMetadata

type VersionMetadata struct {
	// contains filtered or unexported fields
}

Jump to

Keyboard shortcuts

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