Documentation
¶
Index ¶
- func ExcludeTxs(txs []common.Bytes, exclusionTxMap map[string]bool, chain *blockchain.Chain) (results []common.Bytes)
- func ExportChainBackup(chain *blockchain.Chain, startHeight, endHeight uint64, backupDir string) (actualStartHeight, actualEndHeight uint64, backupFile string, err error)
- func ExportChainCorrection(chain *blockchain.Chain, ledger core.Ledger, snapshotHeight uint64, ...) (backupFile string, blockHashMap map[uint64]string, err error)
- func ExportSnapshot(db database.Database, consensus *cns.ConsensusEngine, chain *blockchain.Chain, ...) (string, error)
- func ImportSnapshot(snapshotFilePath, chainImportDirPath, chainCorrectionPath string, ...) (snapshotBlockHeader *core.BlockHeader, lastCC *core.ExtendedBlock, err error)
- func LoadChainCorrection(chainImportDirPath string, snapshotBlockHeader *core.BlockHeader, ...) (headBlock, tailBlock *core.ExtendedBlock, err error)
- func ValidateSnapshot(snapshotFilePath, chainImportDirPath, chainCorrectionPath string) (*core.BlockHeader, error)
- type SVStack
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ExcludeTxs ¶ added in v1.0.5
func ExportChainBackup ¶
func ExportChainCorrection ¶ added in v1.0.5
func ExportSnapshot ¶
func ExportSnapshot(db database.Database, consensus *cns.ConsensusEngine, chain *blockchain.Chain, snapshotDir string, height uint64) (string, error)
func ImportSnapshot ¶
func ImportSnapshot(snapshotFilePath, chainImportDirPath, chainCorrectionPath string, chain *blockchain.Chain, db database.Database, ledger *ledger.Ledger) (snapshotBlockHeader *core.BlockHeader, lastCC *core.ExtendedBlock, err error)
ImportSnapshot loads the snapshot into the given database
func LoadChainCorrection ¶ added in v1.0.5
func LoadChainCorrection(chainImportDirPath string, snapshotBlockHeader *core.BlockHeader, metadata *core.SnapshotMetadata, chain *blockchain.Chain, db database.Database, ledger *ledger.Ledger) (headBlock, tailBlock *core.ExtendedBlock, err error)
func ValidateSnapshot ¶
func ValidateSnapshot(snapshotFilePath, chainImportDirPath, chainCorrectionPath string) (*core.BlockHeader, error)
ValidateSnapshot validates the snapshot using a temporary database
Types ¶
Click to show internal directories.
Click to hide internal directories.