Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for measures to LocalTxMonitor #1191

Draft
wants to merge 18 commits into
base: main
Choose a base branch
from

Commits on Aug 26, 2024

  1. consensus: consolidate transaction limits in the mempool

    Remove `Mempool.`getTxSize`; the snapshot interface contains sizes now.
    
    Transaction size, block capacity, and mempool capacity are multi-dimensional
    vectors (incl ExUnits, etc), instead of merely bytes: see `TxMeasure`.
    
    A transaction cannot be added if it would push any component of the size over
    that component's capacity.
    
    The capacity override is still only specified in byte size, but the value is
    interpreted as a block count (rounded up).
    
    Enforce block capacity _before_ the forging logic.
    Now the forging logic simply includes whatever transactions its given, which is
    reasonable and simpler. It's the NodeKernel logic that uses the mempool's
    finger tree in order to slice an appropriately-sized prefix, which is then
    passed to the now-dumb forging function.
    
    consensus: no longer need BoundedMeasure, Measure suffices
    
    consensus-cardano: use ConwayMeasure in Babbage
    
    TOSQUASH fixup overflow workarounds and their explanations
    
    consensus: update stale tryAddTxs Haddock references
    
    consensus: an editing pass on the addTx Haddock
    
    consensus: elaborate comment on pureTryAddTx guard
    
    consensus: mitigate new mempool DoS vector
    
    consensus: txMeasure now fails if the tx is too big
    
    TOSQUASH fixup hlint and 9.* build
    
    TOSQUASH fixup stylish
    
    TOSQUASH polishing
    
    consensus: explicit overflow check in pureTryAddTx
    
    consensus: Word32 for tx byte size instead of Natural
    
    consensus: mention Segregated Witness scheme in tx byte size comment
    nfrisby committed Aug 26, 2024
    Configuration menu
    Copy the full SHA
    a1858ab View commit details
    Browse the repository at this point in the history
  2. Update changelogs

    nfrisby committed Aug 26, 2024
    Configuration menu
    Copy the full SHA
    ee1400e View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    f205db6 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    a72535c View commit details
    Browse the repository at this point in the history
  5. TOSQUASH minimize diff

    nfrisby committed Aug 26, 2024
    Configuration menu
    Copy the full SHA
    695fe1f View commit details
    Browse the repository at this point in the history
  6. TOSQUASH fixup some Haddock

    nfrisby committed Aug 26, 2024
    Configuration menu
    Copy the full SHA
    b67443d View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    fe778a3 View commit details
    Browse the repository at this point in the history

Commits on Aug 28, 2024

  1. Configuration menu
    Copy the full SHA
    f15f603 View commit details
    Browse the repository at this point in the history

Commits on Aug 29, 2024

  1. Configuration menu
    Copy the full SHA
    e45d9da View commit details
    Browse the repository at this point in the history
  2. add fromByteSize :: Num a => ByteSize -> a, with a WARNING that it …

    …will likely explode due to overflow
    fraser-iohk committed Aug 29, 2024
    Configuration menu
    Copy the full SHA
    3cc888a View commit details
    Browse the repository at this point in the history
  3. add TxMeasureMetrics

    fraser-iohk committed Aug 29, 2024
    Configuration menu
    Copy the full SHA
    310d435 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    4387891 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    ac1979c View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    529d4e7 View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    02e944d View commit details
    Browse the repository at this point in the history
  8. stylish

    fraser-iohk committed Aug 29, 2024
    Configuration menu
    Copy the full SHA
    1475242 View commit details
    Browse the repository at this point in the history

Commits on Sep 3, 2024

  1. Configuration menu
    Copy the full SHA
    159d33f View commit details
    Browse the repository at this point in the history

Commits on Sep 4, 2024

  1. Configuration menu
    Copy the full SHA
    804a8f9 View commit details
    Browse the repository at this point in the history