ouroboros-consensus-cardano-0.20.0.0: The instantation of the Ouroboros consensus layer used by Cardano
Safe HaskellSafe-Inferred
LanguageHaskell2010

Ouroboros.Consensus.Shelley.Node.Praos

Contents

Synopsis

BlockForging

praosBlockForging ∷ ∀ m era c. (ShelleyCompatible (Praos c) era, c ~ EraCrypto era, TxLimits (ShelleyBlock (Praos c) era), IOLike m) ⇒ PraosParamsShelleyLeaderCredentials (EraCrypto era) → m (BlockForging m (ShelleyBlock (Praos c) era)) Source #

Create a BlockForging record for a single era.

praosSharedBlockForging ∷ ∀ m c era. (ShelleyEraWithCrypto c (Praos c) era, IOLike m) ⇒ HotKey c m → (SlotNoKESPeriod) → ShelleyLeaderCredentials c → BlockForging m (ShelleyBlock (Praos c) era) Source #

Create a BlockForging record safely using the given Hotkey.

The name of the era (separated by a _) will be appended to each forgeLabel.