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