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

Ouroboros.Consensus.Byron.Ledger.Forge

Synopsis

Documentation

forgeByronBlock Source #

Arguments

:: HasCallStack 
=> TopLevelConfig ByronBlock 
-> TxOverrides ByronBlock

How to override max tx capacity defined by ledger

-> BlockNo

Current block number

-> SlotNo

Current slot number

-> TickedLedgerState ByronBlock

Current ledger

-> [Validated (GenTx ByronBlock)]

Txs to consider adding in the block

-> PBftIsLeader PBftByronCrypto

Leader proof (IsLeader)

-> ByronBlock 

forgeRegularBlock Source #

Arguments

:: HasCallStack 
=> BlockConfig ByronBlock 
-> TxOverrides ByronBlock

How to override max tx capacity defined by ledger

-> BlockNo

Current block number

-> SlotNo

Current slot number

-> TickedLedgerState ByronBlock

Current ledger

-> [Validated (GenTx ByronBlock)]

Txs to consider adding in the block

-> PBftIsLeader PBftByronCrypto

Leader proof (IsLeader)

-> ByronBlock 

For testing purposes

forgeEBB Source #

Arguments

:: BlockConfig ByronBlock 
-> SlotNo

Current slot

-> BlockNo

Current block number

-> ChainHash ByronBlock

Previous hash

-> ByronBlock