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

Ouroboros.Consensus.Storage.LedgerDB.V1.Forker

Synopsis

Documentation

data ForkerEnv (m ∷ TypeType) (l ∷ LedgerStateKind) blk Source #

Constructors

ForkerEnv 

Fields

Instances

Instances details
Generic (ForkerEnv m l blk) Source # 
Instance details

Defined in Ouroboros.Consensus.Storage.LedgerDB.V1.Forker

Associated Types

type Rep (ForkerEnv m l blk) 
Instance details

Defined in Ouroboros.Consensus.Storage.LedgerDB.V1.Forker

type Rep (ForkerEnv m l blk) = D1 ('MetaData "ForkerEnv" "Ouroboros.Consensus.Storage.LedgerDB.V1.Forker" "ouroboros-consensus-0.26.0.0-inplace" 'False) (C1 ('MetaCons "ForkerEnv" 'PrefixI 'True) ((S1 ('MetaSel ('Just "foeBackingStoreValueHandle") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (LedgerBackingStoreValueHandle m l)) :*: S1 ('MetaSel ('Just "foeChangelog") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (StrictTVar m (DbChangelog l)))) :*: (S1 ('MetaSel ('Just "foeSwitchVar") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (StrictTVar m (DbChangelog l))) :*: (S1 ('MetaSel ('Just "foeSecurityParam") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 SecurityParam) :*: S1 ('MetaSel ('Just "foeTracer") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (Tracer m TraceForkerEvent))))))

Methods

fromForkerEnv m l blk → Rep (ForkerEnv m l blk) x #

toRep (ForkerEnv m l blk) x → ForkerEnv m l blk #

(IOLike m, LedgerSupportsProtocol blk, NoThunks (l EmptyMK), NoThunks (TxIn l), NoThunks (TxOut l)) ⇒ NoThunks (ForkerEnv m l blk) Source # 
Instance details

Defined in Ouroboros.Consensus.Storage.LedgerDB.V1.Forker

Methods

noThunksContextForkerEnv m l blk → IO (Maybe ThunkInfo) Source #

wNoThunksContextForkerEnv m l blk → IO (Maybe ThunkInfo) Source #

showTypeOfProxy (ForkerEnv m l blk) → String Source #

type Rep (ForkerEnv m l blk) Source # 
Instance details

Defined in Ouroboros.Consensus.Storage.LedgerDB.V1.Forker

type Rep (ForkerEnv m l blk) = D1 ('MetaData "ForkerEnv" "Ouroboros.Consensus.Storage.LedgerDB.V1.Forker" "ouroboros-consensus-0.26.0.0-inplace" 'False) (C1 ('MetaCons "ForkerEnv" 'PrefixI 'True) ((S1 ('MetaSel ('Just "foeBackingStoreValueHandle") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (LedgerBackingStoreValueHandle m l)) :*: S1 ('MetaSel ('Just "foeChangelog") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (StrictTVar m (DbChangelog l)))) :*: (S1 ('MetaSel ('Just "foeSwitchVar") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (StrictTVar m (DbChangelog l))) :*: (S1 ('MetaSel ('Just "foeSecurityParam") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 SecurityParam) :*: S1 ('MetaSel ('Just "foeTracer") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (Tracer m TraceForkerEvent))))))

closeForkerEnv ∷ ∀ m (l ∷ LedgerStateKind) blk. ForkerEnv m l blk → m () Source #

implForkerCommit ∷ ∀ (m ∷ TypeType) (l ∷ LedgerStateKind) blk. (MonadSTM m, GetTip l, HasLedgerTables l) ⇒ ForkerEnv m l blk → STM m () Source #

implForkerGetLedgerState ∷ ∀ (m ∷ TypeType) l blk. (MonadSTM m, GetTip l) ⇒ ForkerEnv m l blk → STM m (l EmptyMK) Source #

implForkerPush ∷ (MonadSTM m, GetTip l, HasLedgerTables l) ⇒ ForkerEnv m l blk → l DiffMK → m () Source #

implForkerReadStatistics ∷ ∀ m (l ∷ LedgerStateKind) blk. (MonadSTM m, HasLedgerTables l, GetTip l) ⇒ ForkerEnv m l blk → m (Maybe Statistics) Source #

Obtain statistics for a combination of backing store value handle and changelog.