Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Shelley mempool per-tx size check: do not include
perTxOverhead
(#1352
) With the previous logic, a tx that has less than `perTxOverhead = 4` bytes less than the max tx size will be rejected by the mempool even though it is perfectly valid. This bug was introduced in #1175. This behavior could be rather surprising for users who create a big (but not too big) tx and then can't submit it to any node. The fix is to use the "raw" size (without adding `perTxOverhead`) for the check, but to still add `perTxOverhead` when returning the `TxMeasure`. Related: This code shouldn't live in Consensus (also see the module header), cf IntersectMBO/cardano-ledger#4820.
- Loading branch information