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

Ouroboros.Consensus.Byron.Ledger.Forge

Synopsis

Documentation

forgeByronBlock Source #

Arguments

:: HasCallStack
=> TopLevelConfig ByronBlock
-> Overrides 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
-> Overrides 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