Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Synopsis
- class UpdateLedger blk ⇒ CommonProtocolParams blk where
- maxHeaderSize ∷ LedgerState blk → Word32
- maxTxSize ∷ LedgerState blk → Word32
Documentation
class UpdateLedger blk ⇒ CommonProtocolParams blk where Source #
Ask the ledger for common protocol parameters.
maxHeaderSize ∷ LedgerState blk → Word32 Source #
The maximum header size in bytes according to the currently adopted protocol parameters of the ledger state.
maxTxSize ∷ LedgerState blk → Word32 Source #
The maximum transaction size in bytes according to the currently adopted protocol parameters of the ledger state.
Instances
CanHardFork xs ⇒ CommonProtocolParams (HardForkBlock xs) Source # | |
Bridge m a ⇒ CommonProtocolParams (DualBlock m a) Source # | Forward to the main ledger |
Defined in Ouroboros.Consensus.Ledger.Dual maxHeaderSize ∷ LedgerState (DualBlock m a) → Word32 Source # |