keymigrate

package
v0.8.14 Latest Latest
Warning

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

Go to latest
Published: Sep 15, 2021 License: Apache-2.0 Imports: 11 Imported by: 0

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