kvledger

package
v0.0.0-...-bfcd41d Latest Latest
Warning

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

Go to latest
Published: Mar 4, 2021 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BookkeeperDBPath

func BookkeeperDBPath(rootFSPath string) string

BookkeeperDBPath return the absolute path of bookkeeper DB

func ClearPreResetHeight

func ClearPreResetHeight(ledgerconfig *ledger.Config, ledgerIDs []string) error

func ConfigHistoryDBPath

func ConfigHistoryDBPath(rootFSPath string) string

ConfigHistoryDBPath returns the absolute path of configHistory DB

func HistoryDBPath

func HistoryDBPath(rootFSPath string) string

HistoryDBPath returns the absolute path of history DB

func LoadPreResetHeight

func LoadPreResetHeight(ledgerconfig *ledger.Config, ledgerIDs []string) (map[string]uint64, error)

LoadPreResetHeight returns the prereset height for the specified ledgers.

func PauseChannel

func PauseChannel(config *ledger.Config, ledgerID string) error

PauseChannel updates the channel status to inactive in ledgerProviders.

func RebuildDBs

func RebuildDBs(ledgerconfig *ledger.Config) error

RebuildDBs drops existing ledger databases. Dropped database will be rebuilt upon server restart

func ResetAllKVLedgers

func ResetAllKVLedgers(ledgerconfig *ledger.Config) error

func ResetBlockStore

func ResetBlockStore(ledgerconfig *ledger.Config) error

func ResumeChannel

func ResumeChannel(config *ledger.Config, ledgerID string) error

ResumeChannel updates the channel status to active in ledgerProviders

func RollbackKVLedger

func RollbackKVLedger(ledgerconfig *ledger.Config, ledgerID string, blockNum uint64) error

func StateDBPath

func StateDBPath(rootFSPath string) string

StateDBPath returns the absolute path of state level DB

func UpgradeDBs

func UpgradeDBs(ledgerconfig *ledger.Config) error

UpgradeDBs upgrades existing ledger databases to the latest formats. It checks the format of idStore and does not drop any databases if the format is already the latest version. Otherwise, it drops ledger databases and upgrades the idStore format.

Types

This section is empty.

Jump to

Keyboard shortcuts

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