diff --git a/ouroboros-consensus-cardano/changelog.d/20240711_064942_nick.frisby_consolidate_txlimits.md b/ouroboros-consensus-cardano/changelog.d/20240711_064942_nick.frisby_consolidate_txlimits.md new file mode 100644 index 0000000000..b3d652387b --- /dev/null +++ b/ouroboros-consensus-cardano/changelog.d/20240711_064942_nick.frisby_consolidate_txlimits.md @@ -0,0 +1,21 @@ + + +### Patch + +- Updates for the `TxLimits` mempool consolidation. + +### Non-Breaking + +- Do not check transaction sizes in the forging functions; simply include all + given transactions. + + diff --git a/ouroboros-consensus-diffusion/changelog.d/20240711_064938_nick.frisby_consolidate_txlimits.md b/ouroboros-consensus-diffusion/changelog.d/20240711_064938_nick.frisby_consolidate_txlimits.md new file mode 100644 index 0000000000..f5b93fa410 --- /dev/null +++ b/ouroboros-consensus-diffusion/changelog.d/20240711_064938_nick.frisby_consolidate_txlimits.md @@ -0,0 +1,23 @@ + + + +### Patch + +- Updates for the `TxLimits` mempool consolidation. + + + diff --git a/ouroboros-consensus/changelog.d/20240711_064934_nick.frisby_consolidate_txlimits.md b/ouroboros-consensus/changelog.d/20240711_064934_nick.frisby_consolidate_txlimits.md new file mode 100644 index 0000000000..b5ff7cbaee --- /dev/null +++ b/ouroboros-consensus/changelog.d/20240711_064934_nick.frisby_consolidate_txlimits.md @@ -0,0 +1,38 @@ + + + + + +### Breaking + +- Consolidate `TxLimits` in the mempool. + - Remove `Mempool.`getTxSize`; the snapshot interface contains byte sizes + now. + + - Transaction size, block capacity, and mempool capacity are + multi-dimensional vectors (`ExUnits`, etc), instead of merely bytes: + `TxMeasure`. + + - A transaction cannot be added if it would push any component of the size + over that component of the mempool capacity. + + - The mempool capacity override is still specified in terms of bytes, but + the magnitude is interpreted via division as a block count, rounded up. + +- Pass a correctly-sized prefix of the mempool to the forging functions, + instead of its entire contents. The mempool's finger tree is best way to find + that cutoff.