keymigrate

package
v0.36.0-dev Latest Latest
Warning

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

Go to latest
Published: Oct 4, 2021 License: Apache-2.0 Imports: 11 Imported by: 2 modules, 1 package

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

Overview

Package keymigrate translates all legacy formatted keys to their new components.

The key migration operation as implemented provides a potential model for database migration operations. Crucially, the migration as implemented does not depend on any tendermint code.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Migrate

func Migrate(ctx context.Context, db dbm.DB) error

Migrate converts all legacy key formats to new key formats. The operation is idempotent, so it's safe to resume a failed operation. The operation is somewhat parallelized, relying on the concurrency safety of the underlying databases.

Migrate has "continue on error" semantics and will iterate through all legacy keys attempt to migrate them, and will collect all errors and will return only at the end of the operation.

The context allows for a safe termination of the operation (e.g connected to a singal handler,) to abort the operation in-between migration operations.

Types

This section is empty.

Jump to

Keyboard shortcuts

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