ouroboros-consensus-0.26.0.0: Consensus layer for the Ouroboros blockchain protocol
Safe HaskellNone
LanguageHaskell2010

Ouroboros.Consensus.Storage.LedgerDB.V2.InMemory

Synopsis

LedgerTablesHandle

Snapshots

loadSnapshot ∷ ∀ blk (m ∷ TypeType). (LedgerDbSerialiseConstraints blk, LedgerSupportsProtocol blk, IOLike m, LedgerSupportsInMemoryLedgerDB blk) ⇒ ResourceRegistry m → CodecConfig blk → SomeHasFS m → DiskSnapshotExceptT (SnapshotFailure blk) m (LedgerSeq' m blk, RealPoint blk) Source #

Read snapshot from disk.

Fail on data corruption, i.e. when the checksum of the read data differs from the one tracked by DiskSnapshot.

snapshotToStatePathDiskSnapshotFsPath Source #

The path within the LedgerDB's filesystem to the file that contains the snapshot's serialized ledger state