Skip to content

Commit be4fe20

Browse files
committed
fixup: stimes bug in worstCaseCapacity
1 parent 175e07a commit be4fe20

File tree

1 file changed

+1
-1
lines changed
  • ouroboros-consensus/src/ouroboros-consensus/Ouroboros/Consensus/Mempool

1 file changed

+1
-1
lines changed

ouroboros-consensus/src/ouroboros-consensus/Ouroboros/Consensus/Mempool/API.hs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -249,7 +249,7 @@ worstCaseCapacity ::
249249
=> MempoolCapacity blk
250250
-> TxMeasure blk
251251
worstCaseCapacity capacity =
252-
x
252+
if mult < 1 then Measure.zero else x
253253
where
254254
MempoolCapacity {
255255
mcBlockCapacity = cap

0 commit comments

Comments
 (0)