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 ExportSnapshotV2(db database.Database, consensus *cns.ConsensusEngine, chain *blockchain.Chain, ...) (string, error)
- func ExportSnapshotV3(db database.Database, consensus *cns.ConsensusEngine, chain *blockchain.Chain, ...) (string, error)
- func ExportSnapshotV4(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 LoadSnapshotCheckpointHeader(snapshotFilePath string) *core.BlockHeader
- func ValidateSnapshot(snapshotFilePath, chainImportDirPath, chainCorrectionPath string) (*core.BlockHeader, error)
- type SVStack
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ExcludeTxs ¶
func ExportChainBackup ¶
func ExportChainCorrection ¶
func ExportSnapshotV2 ¶
func ExportSnapshotV2(db database.Database, consensus *cns.ConsensusEngine, chain *blockchain.Chain, snapshotDir string, height uint64) (string, error)
func ExportSnapshotV3 ¶
func ExportSnapshotV3(db database.Database, consensus *cns.ConsensusEngine, chain *blockchain.Chain, snapshotDir string, height uint64) (string, error)
func ExportSnapshotV4 ¶
func ExportSnapshotV4(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 ¶
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 LoadSnapshotCheckpointHeader ¶
func LoadSnapshotCheckpointHeader(snapshotFilePath string) *core.BlockHeader
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.