migration34

package
v0.21.1-beta Latest Latest
Warning

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

Go to latest
Published: Jun 26, 2026 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MigrateDecayedLog

func MigrateDecayedLog(db kvdb.Backend, cfg MigrationConfig) error

MigrateDecayedLog migrates the decayed log. The migration deletes the `batch-replay` bucket, which is no longer used.

NOTE: This migration is idempotent. If the bucket does not exist, then this migration is a no-op.

func UseLogger

func UseLogger(logger btclog.Logger)

UseLogger uses a specified Logger to output package logging info.

Types

type MigrationConfig

type MigrationConfig interface {
	GetDecayedLog() kvdb.Backend
}

MigrationConfig is the interface for the migration configuration.

type MigrationConfigImpl

type MigrationConfigImpl struct {
	DecayedLog kvdb.Backend
}

MigrationConfigImpl is the implementation of the migration configuration.

func (*MigrationConfigImpl) GetDecayedLog

func (c *MigrationConfigImpl) GetDecayedLog() kvdb.Backend

GetDecayedLog returns the decayed log backend.

Jump to

Keyboard shortcuts

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