migrations

package
v7.8.0 Latest Latest
Warning

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

Go to latest
Published: Aug 30, 2024 License: MIT Imports: 7 Imported by: 50

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func PruneExpiredConsensusStates

func PruneExpiredConsensusStates(ctx sdk.Context, cdc codec.BinaryCodec, clientKeeper ClientKeeper) (int, error)

PruneExpiredConsensusStates prunes all expired tendermint consensus states. This function may optionally be called during in-place store migrations. The ibc store key must be provided.

Types

type ClientKeeper

type ClientKeeper interface {
	GetClientState(ctx sdk.Context, clientID string) (exported.ClientState, bool)
	IterateClientStates(ctx sdk.Context, prefix []byte, cb func(string, exported.ClientState) bool)
	ClientStore(ctx sdk.Context, clientID string) sdk.KVStore
	Logger(ctx sdk.Context) log.Logger
}

ClientKeeper expected account IBC client keeper

Jump to

Keyboard shortcuts

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