Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Synopsis
- data family BlockConfig blk
- data ByronSpecBlock = ByronSpecBlock {}
- data family CodecConfig blk
- data family Header blk
- data family StorageConfig blk
- type ByronSpecHeader = Header ByronSpecBlock
Documentation
data family BlockConfig blk Source #
Static configuration required to work with this type of blocks
Instances
Generic (BlockConfig ByronSpecBlock) Source # | |
Defined in Ouroboros.Consensus.ByronSpec.Ledger.Block type Rep (BlockConfig ByronSpecBlock) ∷ Type → Type # | |
NoThunks (BlockConfig ByronSpecBlock) Source # | |
Defined in Ouroboros.Consensus.ByronSpec.Ledger.Block | |
data BlockConfig ByronSpecBlock Source # | |
type Rep (BlockConfig ByronSpecBlock) Source # | |
Defined in Ouroboros.Consensus.ByronSpec.Ledger.Block | |
newtype BlockConfig (DisableDiffusionPipelining blk) | |
Defined in Ouroboros.Consensus.Block.SupportsDiffusionPipelining newtype BlockConfig (DisableDiffusionPipelining blk) = DisableDiffusionPipeliningBlockConfig (BlockConfig blk) | |
newtype BlockConfig (SelectViewDiffusionPipelining blk) | |
Defined in Ouroboros.Consensus.Block.SupportsDiffusionPipelining newtype BlockConfig (SelectViewDiffusionPipelining blk) = SelectViewDiffusionPipeliningBlockConfig (BlockConfig blk) |
data ByronSpecBlock Source #
Block according to the Byron spec
Just like we do for ByronBlock
, we cache the header hash. In addition, we
also add the BlockNo
, as this is entirely absent from the spec but we need
it for the HasHeader
abstraction, which is ubiquitous in
ouroboros-consensus
and -network
.
Instances
data family CodecConfig blk Source #
Static configuration required for serialisation and deserialisation of types pertaining to this type of block.
Data family instead of type family to get better type inference.
Instances
Generic (CodecConfig ByronSpecBlock) Source # | |
Defined in Ouroboros.Consensus.ByronSpec.Ledger.Block type Rep (CodecConfig ByronSpecBlock) ∷ Type → Type # | |
NoThunks (CodecConfig ByronSpecBlock) Source # | |
Defined in Ouroboros.Consensus.ByronSpec.Ledger.Block | |
data CodecConfig ByronSpecBlock Source # | |
type Rep (CodecConfig ByronSpecBlock) Source # | |
Defined in Ouroboros.Consensus.ByronSpec.Ledger.Block |
data family Header blk Source #
Instances
data family StorageConfig blk Source #
Config needed for the
NodeInitStorage
class. Defined here to
avoid circular dependencies.
Instances
Generic (StorageConfig ByronSpecBlock) Source # | |
Defined in Ouroboros.Consensus.ByronSpec.Ledger.Block type Rep (StorageConfig ByronSpecBlock) ∷ Type → Type # | |
NoThunks (StorageConfig ByronSpecBlock) Source # | |
data StorageConfig ByronSpecBlock Source # | |
type Rep (StorageConfig ByronSpecBlock) Source # | |
Defined in Ouroboros.Consensus.ByronSpec.Ledger.Block |
type alias
type ByronSpecHeader = Header ByronSpecBlock Source #