Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Synopsis
- data GenesisConfig = GenesisConfig {}
- data GenesisConfigFlags = GenesisConfigFlags {}
- data LoEAndGDDConfig a
- defaultGenesisConfigFlags ∷ GenesisConfigFlags
- disableGenesisConfig ∷ GenesisConfig
- enableGenesisConfigDefault ∷ GenesisConfig
- mkGenesisConfig ∷ Maybe GenesisConfigFlags → GenesisConfig
- data GenesisNodeKernelArgs m blk = GenesisNodeKernelArgs {
- gnkaLoEAndGDDArgs ∷ !(LoEAndGDDConfig (LoEAndGDDNodeKernelArgs m blk))
- data LoEAndGDDNodeKernelArgs m blk = LoEAndGDDNodeKernelArgs {
- lgnkaLoEFragmentTVar ∷ !(StrictTVar m (GetLoEFragment m blk))
- lgnkaGDDRateLimit ∷ DiffTime
- mkGenesisNodeKernelArgs ∷ ∀ m blk. (IOLike m, GetHeader blk) ⇒ GenesisConfig → m (GenesisNodeKernelArgs m blk, Complete ChainDbArgs m blk → Complete ChainDbArgs m blk)
- setGetLoEFragment ∷ ∀ m blk. (IOLike m, GetHeader blk) ⇒ STM m GsmState → STM m (AnchoredFragment (Header blk)) → StrictTVar m (GetLoEFragment m blk) → m ()
GenesisConfig
data GenesisConfig Source #
Aggregating the various configs for Genesis-related subcomponents.
Usually, enableGenesisConfigDefault
or disableGenesisConfig
can be used.
See the haddocks of the types of the individual fields for details.
Instances
Generic GenesisConfig Source # | |
Defined in Ouroboros.Consensus.Node.Genesis type Rep GenesisConfig ∷ Type → Type # from ∷ GenesisConfig → Rep GenesisConfig x # to ∷ Rep GenesisConfig x → GenesisConfig # | |
Show GenesisConfig Source # | |
Defined in Ouroboros.Consensus.Node.Genesis showsPrec ∷ Int → GenesisConfig → ShowS # show ∷ GenesisConfig → String # showList ∷ [GenesisConfig] → ShowS # | |
Eq GenesisConfig Source # | |
Defined in Ouroboros.Consensus.Node.Genesis (==) ∷ GenesisConfig → GenesisConfig → Bool # (/=) ∷ GenesisConfig → GenesisConfig → Bool # | |
type Rep GenesisConfig Source # | |
Defined in Ouroboros.Consensus.Node.Genesis |
data GenesisConfigFlags Source #
Genesis configuration flags and low-level args, as parsed from config file or CLI
Instances
data LoEAndGDDConfig a Source #
Whether to en-/disable the Limit on Eagerness and the Genesis Density Disconnector.
Instances
disableGenesisConfig ∷ GenesisConfig Source #
Disable all Genesis components, yielding Praos behavior.
NodeKernel helpers
data GenesisNodeKernelArgs m blk Source #
Genesis-related arguments needed by the NodeKernel initialization logic.
data LoEAndGDDNodeKernelArgs m blk Source #
LoEAndGDDNodeKernelArgs | |
|
mkGenesisNodeKernelArgs ∷ ∀ m blk. (IOLike m, GetHeader blk) ⇒ GenesisConfig → m (GenesisNodeKernelArgs m blk, Complete ChainDbArgs m blk → Complete ChainDbArgs m blk) Source #
Create the initial 'GenesisNodeKernelArgs" (with a temporary
GetLoEFragment
that will be replaced via setGetLoEFragment
) and a
function to update the ChainDbArgs
accordingly.
∷ ∀ m blk. (IOLike m, GetHeader blk) | |
⇒ STM m GsmState | |
→ STM m (AnchoredFragment (Header blk)) | The LoE fragment. |
→ StrictTVar m (GetLoEFragment m blk) | |
→ m () |
Set gnkaGetLoEFragment
to the actual logic for determining the current
LoE fragment.