Versions in this module Expand all Collapse all v3 v3.0.1 Dec 28, 2023 v3.0.0 Dec 23, 2022 Changes in this version + func NewLeveldb(dbConfig *leveldbProvider.LevelDbConfig, logger protocol.Logger, ...) (*leveldbProvider.LevelDBHandle, error) + func NewStoreImportSnapshot(chainID string, storeConfig *conf.StorageConfig, blockDB blockdb.BlockDB, ...) (protocol.ImportLedgerSnapshot, error) + type LedgerSnapshot interface + GetSnapshotStatus func() uint64 + MakeSnapshot func(currHeight, height uint64) error + RecevieSnapshotIterator func() + SendSnapshotIterator func(snapshotDir string, height uint64) error + WaitingSnapshotJob func(height uint64) error + func NewSnapshot(blockdb blockdb.BlockDB, statedb statedb.StateDB, ...) LedgerSnapshot + type Snapshot struct + func (s *Snapshot) GetSnapshotStatus() uint64 + func (s *Snapshot) MakeSnapshot(currHeight, height uint64) error + func (s *Snapshot) RecevieSnapshotIterator() + func (s *Snapshot) SendSnapshotIterator(rootDir string, height uint64) error + func (s *Snapshot) WaitingSnapshotJob(height uint64) error + type StoreImportSnapshot struct + func (i *StoreImportSnapshot) ImportSnapshot(chainID string, snapshotPath string, height uint64) error