ouroboros-consensus-byron-0.1.0.1: Byron ledger integration in the Ouroboros consensus layer
Safe Haskell None
Language Haskell2010

Ouroboros.Consensus.Byron.Ledger.Block

Synopsis

Hash

newtype ByronHash Source #

Instances

Instances details
Eq ByronHash Source #
Instance details

Defined in Ouroboros.Consensus.Byron.Ledger.Block

Ord ByronHash Source #
Instance details

Defined in Ouroboros.Consensus.Byron.Ledger.Block

Show ByronHash Source #
Instance details

Defined in Ouroboros.Consensus.Byron.Ledger.Block

Generic ByronHash Source #
Instance details

Defined in Ouroboros.Consensus.Byron.Ledger.Block

ToCBOR ByronHash Source #
Instance details

Defined in Ouroboros.Consensus.Byron.Ledger.Block

FromCBOR ByronHash Source #
Instance details

Defined in Ouroboros.Consensus.Byron.Ledger.Block

NoThunks ByronHash Source #
Instance details

Defined in Ouroboros.Consensus.Byron.Ledger.Block

Serialise ByronHash Source #
Instance details

Defined in Ouroboros.Consensus.Byron.Ledger.Serialisation

Condense ByronHash Source #
Instance details

Defined in Ouroboros.Consensus.Byron.Ledger.Block

type Rep ByronHash Source #
Instance details

Defined in Ouroboros.Consensus.Byron.Ledger.Block

type Rep ByronHash = D1 (' MetaData "ByronHash" "Ouroboros.Consensus.Byron.Ledger.Block" "ouroboros-consensus-byron-0.1.0.1-1xx7v4AzrF0A75LZoaNMal" ' True ) ( C1 (' MetaCons "ByronHash" ' PrefixI ' True ) ( S1 (' MetaSel (' Just "unByronHash") ' NoSourceUnpackedness ' NoSourceStrictness ' DecidedLazy ) ( Rec0 HeaderHash )))

Block

data ByronBlock Source #

Byron block

We cache two bits of information:

  • We cache the slot number as this is not readily available for EBBs. Having it cached allows us to e.g. give a HasHeader instance.
  • We cache the hash as this is expensive to compute and we need it often.

Instances

Instances details
Eq ByronBlock Source #
Instance details

Defined in Ouroboros.Consensus.Byron.Ledger.Block

Show ByronBlock Source #
Instance details

Defined in Ouroboros.Consensus.Byron.Ledger.Block

SerialiseNodeToNodeConstraints ByronBlock Source #
Instance details

Defined in Ouroboros.Consensus.Byron.Node.Serialisation

SerialiseNodeToClientConstraints ByronBlock Source #
Instance details

Defined in Ouroboros.Consensus.Byron.Node.Serialisation

RunNode ByronBlock Source #
Instance details

Defined in Ouroboros.Consensus.Byron.Node

SerialiseDiskConstraints ByronBlock Source #
Instance details

Defined in Ouroboros.Consensus.Byron.Node.Serialisation

NodeInitStorage ByronBlock Source #
Instance details

Defined in Ouroboros.Consensus.Byron.Node

QueryLedger ByronBlock Source #
Instance details

Defined in Ouroboros.Consensus.Byron.Ledger.Ledger

ConfigSupportsNode ByronBlock Source #
Instance details

Defined in Ouroboros.Consensus.Byron.Node

HasHardForkHistory ByronBlock Source #
Instance details

Defined in Ouroboros.Consensus.Byron.Ledger.Ledger

LedgerSupportsProtocol ByronBlock Source #
Instance details

Defined in Ouroboros.Consensus.Byron.Ledger.Ledger

HasBinaryBlockInfo ByronBlock Source #
Instance details

Defined in Ouroboros.Consensus.Byron.Node.Serialisation

InspectLedger ByronBlock Source #
Instance details

Defined in Ouroboros.Consensus.Byron.Ledger.Inspect

HasAnnTip ByronBlock Source #
Instance details

Defined in Ouroboros.Consensus.Byron.Ledger.HeaderValidation

BasicEnvelopeValidation ByronBlock Source #
Instance details

Defined in Ouroboros.Consensus.Byron.Ledger.HeaderValidation

ValidateEnvelope ByronBlock Source #
Instance details

Defined in Ouroboros.Consensus.Byron.Ledger.HeaderValidation

TxLimits ByronBlock Source #
Instance details

Defined in Ouroboros.Consensus.Byron.Ledger.Mempool

LedgerSupportsMempool ByronBlock Source #
Instance details

Defined in Ouroboros.Consensus.Byron.Ledger.Mempool

HasTxs ByronBlock Source #
Instance details

Defined in Ouroboros.Consensus.Byron.Ledger.Mempool

BlockSupportsMetrics ByronBlock Source #
Instance details

Defined in Ouroboros.Consensus.Byron.Node

BlockSupportsProtocol ByronBlock Source #
Instance details

Defined in Ouroboros.Consensus.Byron.Ledger.PBFT

CommonProtocolParams ByronBlock Source #
Instance details

Defined in Ouroboros.Consensus.Byron.Ledger.Ledger

LedgerSupportsPeerSelection ByronBlock Source #
Instance details

Defined in Ouroboros.Consensus.Byron.Ledger.Ledger

UpdateLedger ByronBlock Source #
Instance details

Defined in Ouroboros.Consensus.Byron.Ledger.Ledger

GetPrevHash ByronBlock Source #
Instance details

Defined in Ouroboros.Consensus.Byron.Ledger.Block

GetHeader ByronBlock Source #
Instance details

Defined in Ouroboros.Consensus.Byron.Ledger.Block

ConvertRawHash ByronBlock Source #
Instance details

Defined in Ouroboros.Consensus.Byron.Ledger.Block

Condense ByronBlock Source #
Instance details

Defined in Ouroboros.Consensus.Byron.Ledger.Block

HasNetworkProtocolVersion ByronBlock Source #
Instance details

Defined in Ouroboros.Consensus.Byron.Ledger.NetworkProtocolVersion

SupportedNetworkProtocolVersion ByronBlock Source #
Instance details

Defined in Ouroboros.Consensus.Byron.Ledger.NetworkProtocolVersion

StandardHash ByronBlock Source #
Instance details

Defined in Ouroboros.Consensus.Byron.Ledger.Block

HasHeader ByronBlock Source #
Instance details

Defined in Ouroboros.Consensus.Byron.Ledger.Block

SerialiseNodeToNode ByronBlock ByronBlock Source #

CBOR-in-CBOR for the annotation. This also makes it compatible with the wrapped ( Serialised ) variant.

Instance details

Defined in Ouroboros.Consensus.Byron.Node.Serialisation

SerialiseNodeToClient ByronBlock ApplyMempoolPayloadErr Source #
ApplyTxErr ByronBlock
Instance details

Defined in Ouroboros.Consensus.Byron.Node.Serialisation

SerialiseNodeToClient ByronBlock SlotNo Source #
Instance details

Defined in Ouroboros.Consensus.Byron.Node.Serialisation

SerialiseNodeToClient ByronBlock ByronBlock Source #

CBOR-in-CBOR for the annotation. This also makes it compatible with the wrapped ( Serialised ) variant.

Instance details

Defined in Ouroboros.Consensus.Byron.Node.Serialisation

EncodeDisk ByronBlock ByronBlock Source #
Instance details

Defined in Ouroboros.Consensus.Byron.Node.Serialisation

ReconstructNestedCtxt Header ByronBlock Source #
Instance details

Defined in Ouroboros.Consensus.Byron.Node.Serialisation

HasNestedContent Header ByronBlock Source #
Instance details

Defined in Ouroboros.Consensus.Byron.Ledger.Serialisation

SerialiseNodeToNode ByronBlock ( Serialised ByronBlock ) Source #

Serialised uses CBOR-in-CBOR by default.

Instance details

Defined in Ouroboros.Consensus.Byron.Node.Serialisation

SerialiseNodeToNode ByronBlock ( SerialisedHeader ByronBlock ) Source #
Instance details

Defined in Ouroboros.Consensus.Byron.Node.Serialisation

SerialiseNodeToNode ByronBlock ( GenTx ByronBlock ) Source #

No CBOR-in-CBOR, because we check for canonical encodings, which means we can use the recomputed encoding for the annotation.

Instance details

Defined in Ouroboros.Consensus.Byron.Node.Serialisation

SerialiseNodeToNode ByronBlock ( GenTxId ByronBlock ) Source #
Instance details

Defined in Ouroboros.Consensus.Byron.Node.Serialisation

SerialiseNodeToNode ByronBlock ( Header ByronBlock ) Source #
Instance details

Defined in Ouroboros.Consensus.Byron.Node.Serialisation

SerialiseNodeToClient ByronBlock ( Serialised ByronBlock ) Source #

Serialised uses CBOR-in-CBOR by default.

Instance details

Defined in Ouroboros.Consensus.Byron.Node.Serialisation

SerialiseNodeToClient ByronBlock ( GenTx ByronBlock ) Source #

No CBOR-in-CBOR, because we check for canonical encodings, which means we can use the recomputed encoding for the annotation.

Instance details

Defined in Ouroboros.Consensus.Byron.Node.Serialisation

SerialiseNodeToClient ByronBlock ( GenTxId ByronBlock ) Source #
Instance details

Defined in Ouroboros.Consensus.Byron.Node.Serialisation

SerialiseResult ByronBlock ( BlockQuery ByronBlock ) Source #
Instance details

Defined in Ouroboros.Consensus.Byron.Node.Serialisation

EncodeDisk ByronBlock ( PBftState PBftByronCrypto ) Source #
ChainDepState (BlockProtocol ByronBlock)
Instance details

Defined in Ouroboros.Consensus.Byron.Node.Serialisation

EncodeDisk ByronBlock ( AnnTip ByronBlock ) Source #
Instance details

Defined in Ouroboros.Consensus.Byron.Node.Serialisation

EncodeDisk ByronBlock ( LedgerState ByronBlock ) Source #
Instance details

Defined in Ouroboros.Consensus.Byron.Node.Serialisation

DecodeDisk ByronBlock ( PBftState PBftByronCrypto ) Source #
ChainDepState (BlockProtocol ByronBlock)
Instance details

Defined in Ouroboros.Consensus.Byron.Node.Serialisation

DecodeDisk ByronBlock ( AnnTip ByronBlock ) Source #
Instance details

Defined in Ouroboros.Consensus.Byron.Node.Serialisation

DecodeDisk ByronBlock ( LedgerState ByronBlock ) Source #
Instance details

Defined in Ouroboros.Consensus.Byron.Node.Serialisation

ShowProxy ( GenTx ByronBlock ) Source #
Instance details

Defined in Ouroboros.Consensus.Byron.Ledger.Mempool

ShowProxy ( TxId ( GenTx ByronBlock )) Source #
Instance details

Defined in Ouroboros.Consensus.Byron.Ledger.Mempool

ShowProxy ( Header ByronBlock ) Source #
Instance details

Defined in Ouroboros.Consensus.Byron.Ledger.Block

SerialiseNodeToClient ByronBlock ( SomeSecond BlockQuery ByronBlock ) Source #
Instance details

Defined in Ouroboros.Consensus.Byron.Node.Serialisation

DecodeDisk ByronBlock ( ByteString -> ByronBlock ) Source #
Instance details

Defined in Ouroboros.Consensus.Byron.Node.Serialisation

Eq ( GenTx ByronBlock ) Source #
Instance details

Defined in Ouroboros.Consensus.Byron.Ledger.Mempool

Eq ( TxId ( GenTx ByronBlock )) Source #
Instance details

Defined in Ouroboros.Consensus.Byron.Ledger.Mempool

Eq ( Validated ( GenTx ByronBlock )) Source #
Instance details

Defined in Ouroboros.Consensus.Byron.Ledger.Mempool

Eq ( LedgerState ByronBlock ) Source #
Instance details

Defined in Ouroboros.Consensus.Byron.Ledger.Ledger

Eq ( Header ByronBlock ) Source #
Instance details

Defined in Ouroboros.Consensus.Byron.Ledger.Block

Ord ( TxId ( GenTx ByronBlock )) Source #
Instance details

Defined in Ouroboros.Consensus.Byron.Ledger.Mempool

Show ( GenTx ByronBlock ) Source #
Instance details

Defined in Ouroboros.Consensus.Byron.Ledger.Mempool

Show ( GenTxId ByronBlock ) Source #
Instance details

Defined in Ouroboros.Consensus.Byron.Ledger.Mempool

Show ( Validated ( GenTx ByronBlock )) Source #
Instance details

Defined in Ouroboros.Consensus.Byron.Ledger.Mempool

Show ( LedgerState ByronBlock ) Source #
Instance details

Defined in Ouroboros.Consensus.Byron.Ledger.Ledger

Show ( Header ByronBlock ) Source #
Instance details

Defined in Ouroboros.Consensus.Byron.Ledger.Block

Generic ( GenTx ByronBlock ) Source #
Instance details

Defined in Ouroboros.Consensus.Byron.Ledger.Mempool

Generic ( Validated ( GenTx ByronBlock )) Source #
Instance details

Defined in Ouroboros.Consensus.Byron.Ledger.Mempool

Generic ( LedgerState ByronBlock ) Source #
Instance details

Defined in Ouroboros.Consensus.Byron.Ledger.Ledger

Generic ( BlockConfig ByronBlock ) Source #
Instance details

Defined in Ouroboros.Consensus.Byron.Ledger.Config

Generic ( CodecConfig ByronBlock ) Source #
Instance details

Defined in Ouroboros.Consensus.Byron.Ledger.Config

Generic ( StorageConfig ByronBlock ) Source #
Instance details

Defined in Ouroboros.Consensus.Byron.Ledger.Config

Generic ( Header ByronBlock ) Source #
Instance details

Defined in Ouroboros.Consensus.Byron.Ledger.Block

Generic ( Ticked ( LedgerState ByronBlock )) Source #
Instance details

Defined in Ouroboros.Consensus.Byron.Ledger.Ledger

NoThunks ( GenTx ByronBlock ) Source #
Instance details

Defined in Ouroboros.Consensus.Byron.Ledger.Mempool

NoThunks ( TxId ( GenTx ByronBlock )) Source #
Instance details

Defined in Ouroboros.Consensus.Byron.Ledger.Mempool

NoThunks ( Validated ( GenTx ByronBlock )) Source #
Instance details

Defined in Ouroboros.Consensus.Byron.Ledger.Mempool

NoThunks ( LedgerState ByronBlock ) Source #
Instance details

Defined in Ouroboros.Consensus.Byron.Ledger.Ledger

NoThunks ( BlockConfig ByronBlock ) Source #
Instance details

Defined in Ouroboros.Consensus.Byron.Ledger.Config

NoThunks ( CodecConfig ByronBlock ) Source #
Instance details

Defined in Ouroboros.Consensus.Byron.Ledger.Config

NoThunks ( StorageConfig ByronBlock ) Source #
Instance details

Defined in Ouroboros.Consensus.Byron.Ledger.Config

NoThunks ( Header ByronBlock ) Source #
Instance details

Defined in Ouroboros.Consensus.Byron.Ledger.Block

NoThunks ( Ticked ( LedgerState ByronBlock )) Source #
Instance details

Defined in Ouroboros.Consensus.Byron.Ledger.Ledger

HasTxId ( GenTx ByronBlock ) Source #
Instance details

Defined in Ouroboros.Consensus.Byron.Ledger.Mempool

GetTip ( LedgerState ByronBlock ) Source #
Instance details

Defined in Ouroboros.Consensus.Byron.Ledger.Ledger

GetTip ( Ticked ( LedgerState ByronBlock )) Source #
Instance details

Defined in Ouroboros.Consensus.Byron.Ledger.Ledger

IsLedger ( LedgerState ByronBlock ) Source #
Instance details

Defined in Ouroboros.Consensus.Byron.Ledger.Ledger

Condense ( GenTx ByronBlock ) Source #
Instance details

Defined in Ouroboros.Consensus.Byron.Ledger.Mempool

Condense ( GenTxId ByronBlock ) Source #
Instance details

Defined in Ouroboros.Consensus.Byron.Ledger.Mempool

Condense ( Header ByronBlock ) Source #
Instance details

Defined in Ouroboros.Consensus.Byron.Ledger.Block

SameDepIndex ( BlockQuery ByronBlock ) Source #
Instance details

Defined in Ouroboros.Consensus.Byron.Ledger.Ledger

HasHeader ( Header ByronBlock ) Source #
Instance details

Defined in Ouroboros.Consensus.Byron.Ledger.Block

ShowQuery ( BlockQuery ByronBlock ) Source #
Instance details

Defined in Ouroboros.Consensus.Byron.Ledger.Ledger

EncodeDiskDepIx ( NestedCtxt Header ) ByronBlock Source #
Instance details

Defined in Ouroboros.Consensus.Byron.Node.Serialisation

EncodeDiskDep ( NestedCtxt Header ) ByronBlock Source #
Instance details

Defined in Ouroboros.Consensus.Byron.Node.Serialisation

DecodeDiskDepIx ( NestedCtxt Header ) ByronBlock Source #
Instance details

Defined in Ouroboros.Consensus.Byron.Node.Serialisation

DecodeDiskDep ( NestedCtxt Header ) ByronBlock Source #
Instance details

Defined in Ouroboros.Consensus.Byron.Node.Serialisation

ApplyBlock ( LedgerState ByronBlock ) ByronBlock Source #
Instance details

Defined in Ouroboros.Consensus.Byron.Ledger.Ledger

ShowProxy ByronBlock Source #
Instance details

Defined in Ouroboros.Consensus.Byron.Ledger.Block

Eq ( BlockQuery ByronBlock result) Source #
Instance details

Defined in Ouroboros.Consensus.Byron.Ledger.Ledger

Show ( BlockQuery ByronBlock result) Source #
Instance details

Defined in Ouroboros.Consensus.Byron.Ledger.Ledger

SameDepIndex ( NestedCtxt_ ByronBlock f) Source #
Instance details

Defined in Ouroboros.Consensus.Byron.Ledger.Serialisation

ShowProxy ( BlockQuery ByronBlock ) Source #
Instance details

Defined in Ouroboros.Consensus.Byron.Ledger.Ledger

Show ( NestedCtxt_ ByronBlock f a) Source #
Instance details

Defined in Ouroboros.Consensus.Byron.Ledger.Serialisation

data BlockQuery ByronBlock a Source #
Instance details

Defined in Ouroboros.Consensus.Byron.Ledger.Ledger

type HardForkIndices ByronBlock Source #
Instance details

Defined in Ouroboros.Consensus.Byron.Ledger.Ledger

type LedgerUpdate ByronBlock Source #
Instance details

Defined in Ouroboros.Consensus.Byron.Ledger.Inspect

type LedgerWarning ByronBlock Source #
Instance details

Defined in Ouroboros.Consensus.Byron.Ledger.Inspect

type TipInfo ByronBlock Source #
Instance details

Defined in Ouroboros.Consensus.Byron.Ledger.HeaderValidation

type OtherHeaderEnvelopeError ByronBlock Source #
Instance details

Defined in Ouroboros.Consensus.Byron.Ledger.HeaderValidation

type CannotForge ByronBlock Source #
Instance details

Defined in Ouroboros.Consensus.Byron.Node

type ForgeStateInfo ByronBlock Source #
Instance details

Defined in Ouroboros.Consensus.Byron.Node

type ForgeStateUpdateError ByronBlock Source #
Instance details

Defined in Ouroboros.Consensus.Byron.Node

type TxMeasure ByronBlock Source #
Instance details

Defined in Ouroboros.Consensus.Byron.Ledger.Mempool

data GenTx ByronBlock Source #

Generalized transactions in Byron

This is effectively the same as AMempoolPayload but we cache the transaction ID (a hash).

Instance details

Defined in Ouroboros.Consensus.Byron.Ledger.Mempool

type ApplyTxErr ByronBlock Source #
Instance details

Defined in Ouroboros.Consensus.Byron.Ledger.Mempool

data LedgerState ByronBlock Source #
Instance details

Defined in Ouroboros.Consensus.Byron.Ledger.Ledger

type BlockProtocol ByronBlock Source #
Instance details

Defined in Ouroboros.Consensus.Byron.Ledger.PBFT

data BlockConfig ByronBlock Source #

Extended configuration we need for Byron

Instance details

Defined in Ouroboros.Consensus.Byron.Ledger.Config

newtype CodecConfig ByronBlock Source #
Instance details

Defined in Ouroboros.Consensus.Byron.Ledger.Config

newtype StorageConfig ByronBlock Source #
Instance details

Defined in Ouroboros.Consensus.Byron.Ledger.Config

data Header ByronBlock Source #

Byron header

See ByronBlock for comments on why we cache certain values.

Instance details

Defined in Ouroboros.Consensus.Byron.Ledger.Block

data NestedCtxt_ ByronBlock f a Source #

Since the Byron header does not contain the size, we include it in the nested type instead.

Instance details

Defined in Ouroboros.Consensus.Byron.Ledger.Serialisation

type BlockNodeToClientVersion ByronBlock Source #
Instance details

Defined in Ouroboros.Consensus.Byron.Ledger.NetworkProtocolVersion

type BlockNodeToNodeVersion ByronBlock Source #
Instance details

Defined in Ouroboros.Consensus.Byron.Ledger.NetworkProtocolVersion

type HeaderHash ByronBlock Source #
Instance details

Defined in Ouroboros.Consensus.Byron.Ledger.Block

type Rep ( GenTx ByronBlock ) Source #
Instance details

Defined in Ouroboros.Consensus.Byron.Ledger.Mempool

type Rep ( Validated ( GenTx ByronBlock )) Source #
Instance details

Defined in Ouroboros.Consensus.Byron.Ledger.Mempool

type Rep ( Validated ( GenTx ByronBlock )) = D1 (' MetaData "Validated" "Ouroboros.Consensus.Byron.Ledger.Mempool" "ouroboros-consensus-byron-0.1.0.1-1xx7v4AzrF0A75LZoaNMal" ' True ) ( C1 (' MetaCons "ValidatedByronTx" ' PrefixI ' True ) ( S1 (' MetaSel (' Just "forgetValidatedByronTx") ' NoSourceUnpackedness ' NoSourceStrictness ' DecidedLazy ) ( Rec0 ( GenTx ByronBlock ))))
type Rep ( LedgerState ByronBlock ) Source #
Instance details

Defined in Ouroboros.Consensus.Byron.Ledger.Ledger

type Rep ( LedgerState ByronBlock ) = D1 (' MetaData "LedgerState" "Ouroboros.Consensus.Byron.Ledger.Ledger" "ouroboros-consensus-byron-0.1.0.1-1xx7v4AzrF0A75LZoaNMal" ' False ) ( C1 (' MetaCons "ByronLedgerState" ' PrefixI ' True ) ( S1 (' MetaSel (' Just "byronLedgerTipBlockNo") ' NoSourceUnpackedness ' SourceStrict ' DecidedStrict ) ( Rec0 ( WithOrigin BlockNo )) :*: ( S1 (' MetaSel (' Just "byronLedgerState") ' NoSourceUnpackedness ' SourceStrict ' DecidedStrict ) ( Rec0 ChainValidationState ) :*: S1 (' MetaSel (' Just "byronLedgerTransition") ' NoSourceUnpackedness ' SourceStrict ' DecidedStrict ) ( Rec0 ByronTransition ))))
type Rep ( BlockConfig ByronBlock ) Source #
Instance details

Defined in Ouroboros.Consensus.Byron.Ledger.Config

type Rep ( BlockConfig ByronBlock ) = D1 (' MetaData "BlockConfig" "Ouroboros.Consensus.Byron.Ledger.Config" "ouroboros-consensus-byron-0.1.0.1-1xx7v4AzrF0A75LZoaNMal" ' False ) ( C1 (' MetaCons "ByronConfig" ' PrefixI ' True ) ( S1 (' MetaSel (' Just "byronGenesisConfig") ' NoSourceUnpackedness ' SourceStrict ' DecidedStrict ) ( Rec0 Config ) :*: ( S1 (' MetaSel (' Just "byronProtocolVersion") ' NoSourceUnpackedness ' SourceStrict ' DecidedStrict ) ( Rec0 ProtocolVersion ) :*: S1 (' MetaSel (' Just "byronSoftwareVersion") ' NoSourceUnpackedness ' SourceStrict ' DecidedStrict ) ( Rec0 SoftwareVersion ))))
type Rep ( CodecConfig ByronBlock ) Source #
Instance details

Defined in Ouroboros.Consensus.Byron.Ledger.Config

type Rep ( CodecConfig ByronBlock ) = D1 (' MetaData "CodecConfig" "Ouroboros.Consensus.Byron.Ledger.Config" "ouroboros-consensus-byron-0.1.0.1-1xx7v4AzrF0A75LZoaNMal" ' True ) ( C1 (' MetaCons "ByronCodecConfig" ' PrefixI ' True ) ( S1 (' MetaSel (' Just "getByronEpochSlots") ' NoSourceUnpackedness ' NoSourceStrictness ' DecidedLazy ) ( Rec0 EpochSlots )))
type Rep ( StorageConfig ByronBlock ) Source #
Instance details

Defined in Ouroboros.Consensus.Byron.Ledger.Config

type Rep ( StorageConfig ByronBlock ) = D1 (' MetaData "StorageConfig" "Ouroboros.Consensus.Byron.Ledger.Config" "ouroboros-consensus-byron-0.1.0.1-1xx7v4AzrF0A75LZoaNMal" ' True ) ( C1 (' MetaCons "ByronStorageConfig" ' PrefixI ' True ) ( S1 (' MetaSel (' Just "getByronBlockConfig") ' NoSourceUnpackedness ' NoSourceStrictness ' DecidedLazy ) ( Rec0 ( BlockConfig ByronBlock ))))
type Rep ( Header ByronBlock ) Source #
Instance details

Defined in Ouroboros.Consensus.Byron.Ledger.Block

type Rep ( Ticked ( LedgerState ByronBlock )) Source #
Instance details

Defined in Ouroboros.Consensus.Byron.Ledger.Ledger

type Rep ( Ticked ( LedgerState ByronBlock )) = D1 (' MetaData "Ticked" "Ouroboros.Consensus.Byron.Ledger.Ledger" "ouroboros-consensus-byron-0.1.0.1-1xx7v4AzrF0A75LZoaNMal" ' False ) ( C1 (' MetaCons "TickedByronLedgerState" ' PrefixI ' True ) ( S1 (' MetaSel (' Just "tickedByronLedgerState") ' NoSourceUnpackedness ' SourceStrict ' DecidedStrict ) ( Rec0 ChainValidationState ) :*: S1 (' MetaSel (' Just "untickedByronLedgerTransition") ' NoSourceUnpackedness ' SourceStrict ' DecidedStrict ) ( Rec0 ByronTransition )))
data TxId ( GenTx ByronBlock ) Source #
Instance details

Defined in Ouroboros.Consensus.Byron.Ledger.Mempool

newtype Validated ( GenTx ByronBlock ) Source #
Instance details

Defined in Ouroboros.Consensus.Byron.Ledger.Mempool

type LedgerCfg ( LedgerState ByronBlock ) Source #
Instance details

Defined in Ouroboros.Consensus.Byron.Ledger.Ledger

type AuxLedgerEvent ( LedgerState ByronBlock ) Source #
Instance details

Defined in Ouroboros.Consensus.Byron.Ledger.Ledger

type LedgerErr ( LedgerState ByronBlock ) Source #
Instance details

Defined in Ouroboros.Consensus.Byron.Ledger.Ledger

data Ticked ( LedgerState ByronBlock ) Source #

The ticked Byron ledger state

Instance details

Defined in Ouroboros.Consensus.Byron.Ledger.Ledger

annotateByronBlock :: EpochSlots -> Block -> ByronBlock Source #

Construct Byron block from unannotated Block

This should be used only when forging blocks (not when receiving blocks over the wire).

Header

data family Header blk Source #

Instances

Instances details
ReconstructNestedCtxt Header ByronBlock Source #
Instance details

Defined in Ouroboros.Consensus.Byron.Node.Serialisation

HasNestedContent Header ByronBlock Source #
Instance details

Defined in Ouroboros.Consensus.Byron.Ledger.Serialisation

SerialiseNodeToNode ByronBlock ( Header ByronBlock ) Source #
Instance details

Defined in Ouroboros.Consensus.Byron.Node.Serialisation

ShowProxy ( Header ByronBlock ) Source #
Instance details

Defined in Ouroboros.Consensus.Byron.Ledger.Block

Eq ( Header ByronBlock ) Source #
Instance details

Defined in Ouroboros.Consensus.Byron.Ledger.Block

Show ( Header ByronBlock ) Source #
Instance details

Defined in Ouroboros.Consensus.Byron.Ledger.Block

Generic ( Header ByronBlock ) Source #
Instance details

Defined in Ouroboros.Consensus.Byron.Ledger.Block

NoThunks ( Header ByronBlock ) Source #
Instance details

Defined in Ouroboros.Consensus.Byron.Ledger.Block

Condense ( Header ByronBlock ) Source #
Instance details

Defined in Ouroboros.Consensus.Byron.Ledger.Block

HasHeader blk => StandardHash ( Header blk)
Instance details

Defined in Ouroboros.Consensus.Block.Abstract

HasHeader ( Header ByronBlock ) Source #
Instance details

Defined in Ouroboros.Consensus.Byron.Ledger.Block

EncodeDiskDepIx ( NestedCtxt Header ) ByronBlock Source #
Instance details

Defined in Ouroboros.Consensus.Byron.Node.Serialisation

EncodeDiskDep ( NestedCtxt Header ) ByronBlock Source #
Instance details

Defined in Ouroboros.Consensus.Byron.Node.Serialisation

DecodeDiskDepIx ( NestedCtxt Header ) ByronBlock Source #
Instance details

Defined in Ouroboros.Consensus.Byron.Node.Serialisation

DecodeDiskDep ( NestedCtxt Header ) ByronBlock Source #
Instance details

Defined in Ouroboros.Consensus.Byron.Node.Serialisation

data Header ByronBlock Source #

Byron header

See ByronBlock for comments on why we cache certain values.

Instance details

Defined in Ouroboros.Consensus.Byron.Ledger.Block

type Rep ( Header ByronBlock ) Source #
Instance details

Defined in Ouroboros.Consensus.Byron.Ledger.Block

type BlockProtocol ( Header blk)
Instance details

Defined in Ouroboros.Consensus.Block.Abstract

type HeaderHash ( Header blk)
Instance details

Defined in Ouroboros.Consensus.Block.Abstract

Dealing with EBBs

Low-level API

data UnsizedHeader Source #

Header without a size hint

Defined in order to support backwards compatible binary encodings.