Skip to content

Commit e759625

Browse files
committed
fixup: export defaultBlockMultiplicity for tests
1 parent be4fe20 commit e759625

File tree

1 file changed

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

1 file changed

+5
-1
lines changed

ouroboros-consensus/src/ouroboros-consensus/Ouroboros/Consensus/Mempool/Impl/Common.hs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
module Ouroboros.Consensus.Mempool.Impl.Common (
1313
-- * Internal state
1414
InternalState (..)
15+
, defaultBlockMultiplicity
1516
, isMempoolSize
1617
-- * Mempool environment
1718
, MempoolEnv (..)
@@ -146,11 +147,14 @@ initInternalState multOverride lastTicketNo cfg slot st = IS {
146147
, isCapacity = MempoolCapacity {
147148
mcBlockCapacity = blockTxCapacity cfg st
148149
, mcBlockMultiplicity = case multOverride of
149-
Nothing -> 2
150+
Nothing -> defaultBlockMultiplicity
150151
Just (MempoolMultiplicityOverride x) -> x
151152
}
152153
}
153154

155+
defaultBlockMultiplicity :: Int
156+
defaultBlockMultiplicity = 2
157+
154158
{-------------------------------------------------------------------------------
155159
Ledger Interface
156160
-------------------------------------------------------------------------------}

0 commit comments

Comments
 (0)