Safe Haskell | None |
---|---|
Language | Haskell2010 |
Synopsis
- data DiskPolicy = DiskPolicy { }
- data SnapshotInterval
-
data
TimeSinceLast
time
- = NoSnapshotTakenYet
- | TimeSinceLast time
- defaultDiskPolicy :: SecurityParam -> SnapshotInterval -> DiskPolicy
Documentation
data DiskPolicy Source #
On-disk policy
We only write ledger states that are older than
k
blocks to disk (that is,
snapshots that are guaranteed valid). The on-disk policy determines how often
we write to disk and how many checkpoints we keep.
DiskPolicy | |
|
Instances
data SnapshotInterval Source #
Length of time, requested by the user, that has to pass after which a snapshot is taken. It can be:
- either explicitly provided by user in seconds
-
or default value can be requested - the specific DiskPolicy determines
what that is exactly, see
defaultDiskPolicy
as an example
Instances
data TimeSinceLast time Source #
Instances
Functor TimeSinceLast Source # | |
Defined in Ouroboros.Consensus.Storage.LedgerDB.DiskPolicy fmap :: (a -> b) -> TimeSinceLast a -> TimeSinceLast b Source # (<$) :: a -> TimeSinceLast b -> TimeSinceLast a Source # |
|
Show time => Show ( TimeSinceLast time) Source # | |
|
defaultDiskPolicy :: SecurityParam -> SnapshotInterval -> DiskPolicy Source #
Default on-disk policy suitable to use with cardano-node