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 
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

forgeEBB Source #

Arguments

BlockConfig ByronBlock 
SlotNo

Current slot

BlockNo

Current block number

ChainHash ByronBlock

Previous hash

ByronBlock