Documentation ¶
Index ¶
- func ExportChainBackup(db database.Database, consensus *cns.ConsensusEngine, chain *blockchain.Chain, ...) (actualStartHeight, actualEndHeight uint64, backupFile string, err error)
- func ExportSnapshot(db database.Database, consensus *cns.ConsensusEngine, chain *blockchain.Chain, ...) (string, error)
- func ImportChainBackup(filePath string) (*core.BackupBlock, error)
- func ImportSnapshot(filePath string, db database.Database) (*core.BlockHeader, error)
- func ValidateSnapshot(filePath string) (*core.BlockHeader, error)
- type SVStack
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ExportChainBackup ¶
func ExportSnapshot ¶
func ExportSnapshot(db database.Database, consensus *cns.ConsensusEngine, chain *blockchain.Chain, snapshotDir string) (string, error)
func ImportChainBackup ¶
func ImportChainBackup(filePath string) (*core.BackupBlock, error)
func ImportSnapshot ¶
ImportSnapshot loads the snapshot into the given database
func ValidateSnapshot ¶
func ValidateSnapshot(filePath string) (*core.BlockHeader, error)
ValidateSnapshot validates the snapshot using a temporary database
Types ¶
Click to show internal directories.
Click to hide internal directories.