upgrade

package
v0.2202.11 Latest Latest
Warning

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

Go to latest
Published: Aug 9, 2023 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Overview

Package upgrade implements the node upgrade backend.

After submitting an upgrade descriptor, the old node may continue running or be restarted up to the point when the consensus layer reaches the upgrade epoch. The new node may not be started until the old node has reached the upgrade epoch.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(store *persistent.CommonStore, dataDir string, checkStatus bool) (api.Backend, error)

New constructs and returns a new upgrade manager. It potentially also checks for and loads any pending upgrade descriptors; if this node is not the one intended to be run according to the loaded descriptor, New will return an error.

func NewDummyUpgradeManager

func NewDummyUpgradeManager() api.Backend

NewDummyUpgradeManager creates and returns a new dummy upgrade manager.

Types

This section is empty.

Directories

Path Synopsis
Package api defines the interface exporting the upgrade infrastructure's functionality.
Package api defines the interface exporting the upgrade infrastructure's functionality.
Package migrations implements upgrade migration handlers.
Package migrations implements upgrade migration handlers.

Jump to

Keyboard shortcuts

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