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 + var ErrArchivedBlock = errors.New("archived block") + var ErrArchivedRWSet = errors.New("archived RWSet") + var ErrArchivedTx = errors.New("archived transaction") + var ErrConfigBlockArchive = errors.New("config block do not need archive") + var ErrInvalidateRestoreBlocks = errors.New("invalidate restore blocks") + type ArchiveMgr struct + func NewArchiveMgr(chainId string, blockDB blockdb.BlockDB, resultDB resultdb.ResultDB, ...) (*ArchiveMgr, error) + func (mgr *ArchiveMgr) ArchiveBlock(archiveHeight uint64) error + func (mgr *ArchiveMgr) GetArchivedPivot() (uint64, error) + func (mgr *ArchiveMgr) GetMinUnArchiveBlockSize() uint64 + func (mgr *ArchiveMgr) RestoreBlock(blockInfos []*serialization.BlockWithSerializedInfo) error