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) (api.Backend, error)
New constructs and returns a new upgrade manager. It 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 ¶
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. |
Click to show internal directories.
Click to hide internal directories.