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

Test.Consensus.Byron.Examples

Synopsis

Setup

cfg :: BlockConfig ByronBlock Source #

codecConfig :: CodecConfig ByronBlock Source #

leaderCredentials :: ByronLeaderCredentials Source #

ledgerConfig :: LedgerConfig ByronBlock Source #

secParam :: SecurityParam Source #

Note that we must use the same value for the SecurityParam as for the WindowSize, because decodeByronChainDepState only takes the SecurityParam and uses it as the basis for the WindowSize.

windowSize :: WindowSize Source #

Examples

exampleApplyTxErr :: ApplyMempoolPayloadErr Source #

exampleChainDepState :: ChainDepState (BlockProtocol ByronBlock) Source #

exampleExtLedgerState :: ExtLedgerState ByronBlock Source #

exampleGenTx :: GenTx ByronBlock Source #

exampleGenTxId :: TxId (GenTx ByronBlock) Source #

exampleHeaderState :: HeaderState ByronBlock Source #

exampleLedgerState :: LedgerState ByronBlock Source #

examples :: Examples ByronBlock Source #