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

Ouroboros.Consensus.Util.TraceSize

Synopsis

Generic

traceSizeMonadIO m ⇒ Tracer m (a, Either CountFailure Word64) → Tracer m a Source #

Generic helper to trace a value and its size

Ledger DB specific

data LedgerDbSize l Source #

Constructors

LedgerDbSize 

Fields

Instances

Instances details
StandardHash l ⇒ Show (LedgerDbSize l) Source # 
Instance details

Defined in Ouroboros.Consensus.Util.TraceSize

traceLedgerDbSize ∷ ∀ m l. (MonadIO m, GetTip l) ⇒ (Word64Bool) → Tracer m (LedgerDbSize l) → Tracer m (LedgerDB l) Source #

Trace the size of the ledger

Only traces slots for which the predicate results true (genesis will be considered to be slot 0).