Documentation ¶
Index ¶
- func BookkeeperDBPath(rootFSPath string) string
- func ClearPreResetHeight(ledgerconfig *ledger.Config, ledgerIDs []string) error
- func ConfigHistoryDBPath(rootFSPath string) string
- func HistoryDBPath(rootFSPath string) string
- func LoadPreResetHeight(ledgerconfig *ledger.Config, ledgerIDs []string) (map[string]uint64, error)
- func PauseChannel(config *ledger.Config, ledgerID string) error
- func RebuildDBs(ledgerconfig *ledger.Config) error
- func ResetAllKVLedgers(ledgerconfig *ledger.Config) error
- func ResetBlockStore(ledgerconfig *ledger.Config) error
- func ResumeChannel(config *ledger.Config, ledgerID string) error
- func RollbackKVLedger(ledgerconfig *ledger.Config, ledgerID string, blockNum uint64) error
- func StateDBPath(rootFSPath string) string
- func UpgradeDBs(ledgerconfig *ledger.Config) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BookkeeperDBPath ¶
BookkeeperDBPath return the absolute path of bookkeeper DB
func ClearPreResetHeight ¶
func ConfigHistoryDBPath ¶
ConfigHistoryDBPath returns the absolute path of configHistory DB
func HistoryDBPath ¶
HistoryDBPath returns the absolute path of history DB
func LoadPreResetHeight ¶
LoadPreResetHeight returns the prereset height for the specified ledgers.
func PauseChannel ¶
PauseChannel updates the channel status to inactive in ledgerProviders.
func RebuildDBs ¶
RebuildDBs drops existing ledger databases. Dropped database will be rebuilt upon server restart
func ResetAllKVLedgers ¶
func ResetBlockStore ¶
func ResumeChannel ¶
ResumeChannel updates the channel status to active in ledgerProviders
func RollbackKVLedger ¶
func StateDBPath ¶
StateDBPath returns the absolute path of state level DB
func UpgradeDBs ¶
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.