Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Ouroboros.Consensus.Shelley.Ledger.Config
Contents
Synopsis
- data family BlockConfig blk
- data family CodecConfig blk
- data family StorageConfig blk
- compactGenesis :: ShelleyGenesis c -> CompactGenesis c
- getCompactGenesis :: CompactGenesis c -> ShelleyGenesis c
- mkShelleyBlockConfig :: ShelleyBasedEra era => ProtVer -> ShelleyGenesis (EraCrypto era) -> [VKey 'BlockIssuer (EraCrypto era)] -> BlockConfig (ShelleyBlock proto era)
- data CompactGenesis c
Documentation
data family BlockConfig blk #
Instances
data family CodecConfig blk #
Instances
data family StorageConfig blk #
Instances
compactGenesis :: ShelleyGenesis c -> CompactGenesis c Source #
Compacts the given ShelleyGenesis
.
getCompactGenesis :: CompactGenesis c -> ShelleyGenesis c Source #
mkShelleyBlockConfig :: ShelleyBasedEra era => ProtVer -> ShelleyGenesis (EraCrypto era) -> [VKey 'BlockIssuer (EraCrypto era)] -> BlockConfig (ShelleyBlock proto era) Source #
opaque
data CompactGenesis c Source #
Compact variant of ShelleyGenesis
with some fields erased that are
only used on start-up and that should not be kept in memory forever.
Concretely:
- The
sgInitialFunds
field is erased. It is only used to set up the initial UTxO in tests and testnets. - The
sgStaking
field is erased. It is only used to register initial stake pools in tests and benchmarks.