store

package
v0.3.6 Latest Latest
Warning

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

Go to latest
Published: Feb 2, 2024 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DefaultDBProvider

func DefaultDBProvider(ctx *DBContext) (dbm.DB, error)

func GetBlockstoreDBs

func GetBlockstoreDBs(config *types.Config) (dbm.DB, *store.BlockStore, error)

func GetStateDBs

func GetStateDBs(config *types.Config) (dbm.DB, state.Store, error)

func Prune added in v0.3.0

func Prune(home string, untilHeight int64, statePruning, forceCompact bool, logger log.Logger) error

func PruneAnyDB added in v0.3.4

func PruneAnyDB(home string, untilHeight int64, statePruning bool, logger log.Logger) error

func PruneGoLevelDB added in v0.3.4

func PruneGoLevelDB(home string, untilHeight int64, statePruning bool, logger log.Logger) error

Types

type DBContext

type DBContext struct {
	ID     string
	Config *types.Config
}

Jump to

Keyboard shortcuts

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