snapshot

package
v1.0.3 Latest Latest
Warning

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

Go to latest
Published: May 9, 2019 License: GPL-3.0 Imports: 25 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ExportChainBackup

func ExportChainBackup(db database.Database, consensus *cns.ConsensusEngine, chain *blockchain.Chain, startHeight, endHeight uint64, backupDir string) (actualStartHeight, actualEndHeight uint64, backupFile string, err error)

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

func ImportSnapshot(filePath string, db database.Database) (*core.BlockHeader, error)

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

type SVStack

type SVStack []*state.StoreView

Jump to

Keyboard shortcuts

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