ouroboros-consensus-byron-0.1.0.0: Byron ledger integration in the Ouroboros consensus layer
Safe HaskellNone
LanguageHaskell2010

Ouroboros.Consensus.Byron.Ledger.Forge

Synopsis

Documentation

forgeByronBlock Source #

Arguments

:: HasCallStack 
=> TopLevelConfig ByronBlock 
-> BlockNo

Current block number

-> SlotNo

Current slot number

-> TickedLedgerState ByronBlock

Current ledger

-> [GenTx ByronBlock]

Txs to add in the block

-> PBftIsLeader PBftByronCrypto

Leader proof (IsLeader)

-> ByronBlock 

forgeRegularBlock Source #

Arguments

:: HasCallStack 
=> BlockConfig ByronBlock 
-> BlockNo

Current block number

-> SlotNo

Current slot number

-> TickedLedgerState ByronBlock

Current ledger

-> [GenTx ByronBlock]

Txs to add 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