@@ -114,8 +114,8 @@ prop_Mempool_addTxs_result setup =
114
114
withTestMempool (testSetup setup) $ \ TestMempool { mempool } -> do
115
115
result <- addTxs mempool (allTxs setup)
116
116
return $ counterexample (ppTxs (txs setup)) $
117
- [(tx, isTxAdded res) | (tx, res) <- result] ===
118
- [(testTx, valid) | (testTx, valid) <- txs setup]
117
+ [(tx, isMempoolTxAdded res) | (tx, res) <- result] ===
118
+ [(testTx, valid) | (testTx, valid) <- txs setup]
119
119
120
120
-- | Test that invalid transactions are never added to the 'Mempool'.
121
121
prop_Mempool_InvalidTxsNeverAdded :: TestSetupWithTxs -> Property
@@ -186,13 +186,13 @@ prop_Mempool_Capacity (MempoolCapTestSetup testSetupWithTxs) =
186
186
MempoolCapacityBytes capacity = testMempoolCap testSetup
187
187
188
188
-- | Convert 'MempoolAddTxResult' into a 'Bool':
189
- -- isTxAdded -> True, isTxRejected -> False.
189
+ -- isMempoolTxAdded -> True, isMempoolTxRejected -> False.
190
190
blindErrors
191
191
:: ([(GenTx TestBlock , MempoolAddTxResult blk )], [GenTx TestBlock ])
192
192
-> ([(GenTx TestBlock , Bool )], [GenTx TestBlock ])
193
193
blindErrors (processed, toAdd) = (processed', toAdd)
194
194
where
195
- processed' = [ (tx, isTxAdded txAddRes)
195
+ processed' = [ (tx, isMempoolTxAdded txAddRes)
196
196
| (tx, txAddRes) <- processed ]
197
197
198
198
expectedResult
@@ -670,8 +670,8 @@ withTestMempool setup@TestSetup { testLedgerState, testInitialTxs, testMempoolCa
670
670
result <- addTxs mempool testInitialTxs
671
671
-- the invalid transactions are reported in the same order they were
672
672
-- added, so the first error is not the result of a cascade
673
- whenJust (find (isTxRejected . snd ) result) $ \ (invalidTx, _) -> error $
674
- " Invalid initial transaction: " <> condense invalidTx
673
+ whenJust (find (isMempoolTxRejected . snd ) result) $ \ (invalidTx, _) ->
674
+ error $ " Invalid initial transaction: " <> condense invalidTx
675
675
676
676
-- Clear the trace
677
677
atomically $ writeTVar varEvents []
0 commit comments