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 ¶
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.