| Safe Haskell | None |
|---|---|
| Language | Haskell2010 |
Ouroboros.Consensus.Ledger.CommonProtocolParams
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.
Methods
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 # | |
Defined in Ouroboros.Consensus.HardFork.Combinator.Ledger.CommonProtocolParams Methods maxHeaderSize :: LedgerState (HardForkBlock xs) -> Word32 Source # maxTxSize :: LedgerState (HardForkBlock xs) -> Word32 Source # | |
| Bridge m a => CommonProtocolParams (DualBlock m a) Source # | Forward to the main ledger |
Defined in Ouroboros.Consensus.Ledger.Dual Methods maxHeaderSize :: LedgerState (DualBlock m a) -> Word32 Source # | |