@@ -58,9 +58,9 @@ basicPruneWithAddress = performBasicPrune True
58
58
59
59
performBasicPrune :: Bool -> IOManager -> [(Text , Text )] -> Assertion
60
60
performBasicPrune useTxOutAddress = do
61
- withCustomConfigAndDropDB args (Just $ configPruneForceTxIn useTxOutAddress) cfgDir testLabel $ \ interpreter mockServer dbSync -> do
61
+ withCustomConfigDropDB args (Just $ configPruneForceTxIn useTxOutAddress) cfgDir testLabel $ \ interpreter mockServer dbSync -> do
62
62
startDBSync dbSync
63
- let txOutTableType = txOutTableTypeFromConfig dbSync
63
+ let txOutTableType = txOutVariantTypeFromConfig dbSync
64
64
65
65
-- Add some blocks
66
66
blks <- forgeAndSubmitBlocks interpreter mockServer 50
@@ -98,8 +98,8 @@ pruneWithSimpleRollbackWithAddress = performPruneWithSimpleRollback True
98
98
99
99
performPruneWithSimpleRollback :: Bool -> IOManager -> [(Text , Text )] -> Assertion
100
100
performPruneWithSimpleRollback useTxOutAddress =
101
- withCustomConfigAndDropDB cmdLineArgs (Just $ configPruneForceTxIn useTxOutAddress) conwayConfigDir testLabel $ \ interpreter mockServer dbSync -> do
102
- let txOutTableType = txOutTableTypeFromConfig dbSync
101
+ withCustomConfigDropDB cmdLineArgs (Just $ configPruneForceTxIn useTxOutAddress) conwayConfigDir testLabel $ \ interpreter mockServer dbSync -> do
102
+ let txOutTableType = txOutVariantTypeFromConfig dbSync
103
103
-- Forge some blocks
104
104
blk0 <- forgeNext interpreter mockBlock0
105
105
blk1 <- forgeNext interpreter mockBlock1
@@ -141,9 +141,9 @@ pruneWithFullTxRollbackWithAddress = performPruneWithFullTxRollback True
141
141
142
142
performPruneWithFullTxRollback :: Bool -> IOManager -> [(Text , Text )] -> Assertion
143
143
performPruneWithFullTxRollback useTxOutAddress =
144
- withCustomConfigAndDropDB cmdLineArgs (Just $ configPruneForceTxIn useTxOutAddress) conwayConfigDir testLabel $ \ interpreter mockServer dbSync -> do
144
+ withCustomConfigDropDB cmdLineArgs (Just $ configPruneForceTxIn useTxOutAddress) conwayConfigDir testLabel $ \ interpreter mockServer dbSync -> do
145
145
startDBSync dbSync
146
- let txOutTableType = txOutTableTypeFromConfig dbSync
146
+ let txOutTableType = txOutVariantTypeFromConfig dbSync
147
147
-- Forge a block
148
148
blk0 <- forgeNextFindLeaderAndSubmit interpreter mockServer []
149
149
-- Add some transactions
@@ -186,9 +186,9 @@ pruningShouldKeepSomeTxWithAddress = performPruningShouldKeepSomeTx True
186
186
187
187
performPruningShouldKeepSomeTx :: Bool -> IOManager -> [(Text , Text )] -> Assertion
188
188
performPruningShouldKeepSomeTx useTxOutAddress = do
189
- withCustomConfigAndDropDB cmdLineArgs (Just $ configPrune useTxOutAddress) conwayConfigDir testLabel $ \ interpreter mockServer dbSync -> do
189
+ withCustomConfigDropDB cmdLineArgs (Just $ configPrune useTxOutAddress) conwayConfigDir testLabel $ \ interpreter mockServer dbSync -> do
190
190
startDBSync dbSync
191
- let txOutTableType = txOutTableTypeFromConfig dbSync
191
+ let txOutTableType = txOutVariantTypeFromConfig dbSync
192
192
-- Forge some blocks
193
193
blk1 <- forgeAndSubmitBlocks interpreter mockServer 80
194
194
-- These two blocks/transactions will fall within the last (2 * securityParam) 20
@@ -222,10 +222,10 @@ pruneAndRollBackOneBlockWithAddress = performPruneAndRollBackOneBlock True
222
222
223
223
performPruneAndRollBackOneBlock :: Bool -> IOManager -> [(Text , Text )] -> Assertion
224
224
performPruneAndRollBackOneBlock useTxOutAddress =
225
- withCustomConfigAndDropDB cmdLineArgs (Just $ configPruneForceTxIn useTxOutAddress) conwayConfigDir testLabel $ \ interpreter mockServer dbSync -> do
225
+ withCustomConfigDropDB cmdLineArgs (Just $ configPruneForceTxIn useTxOutAddress) conwayConfigDir testLabel $ \ interpreter mockServer dbSync -> do
226
226
startDBSync dbSync
227
227
228
- let txOutTableType = txOutTableTypeFromConfig dbSync
228
+ let txOutTableType = txOutVariantTypeFromConfig dbSync
229
229
-- Forge some blocks
230
230
void $ forgeAndSubmitBlocks interpreter mockServer 98
231
231
-- These transactions will fall within the last (2 * securityParam) 20
@@ -268,10 +268,10 @@ noPruneAndRollBackWithAddress = performNoPruneAndRollBack True
268
268
269
269
performNoPruneAndRollBack :: Bool -> IOManager -> [(Text , Text )] -> Assertion
270
270
performNoPruneAndRollBack useTxOutAddress =
271
- withCustomConfigAndDropDB cmdLineArgs (Just $ configConsume useTxOutAddress) conwayConfigDir testLabel $ \ interpreter mockServer dbSync -> do
271
+ withCustomConfigDropDB cmdLineArgs (Just $ configConsume useTxOutAddress) conwayConfigDir testLabel $ \ interpreter mockServer dbSync -> do
272
272
startDBSync dbSync
273
273
274
- let txOutTableType = txOutTableTypeFromConfig dbSync
274
+ let txOutTableType = txOutVariantTypeFromConfig dbSync
275
275
-- Forge some blocks
276
276
void $ forgeAndSubmitBlocks interpreter mockServer 98
277
277
-- Add a block with transactions
@@ -314,10 +314,10 @@ pruneSameBlockWithAddress = performPruneSameBlock True
314
314
315
315
performPruneSameBlock :: Bool -> IOManager -> [(Text , Text )] -> Assertion
316
316
performPruneSameBlock useTxOutAddress =
317
- withCustomConfigAndDropDB cmdLineArgs (Just $ configPruneForceTxIn useTxOutAddress) conwayConfigDir testLabel $ \ interpreter mockServer dbSync -> do
317
+ withCustomConfigDropDB cmdLineArgs (Just $ configPruneForceTxIn useTxOutAddress) conwayConfigDir testLabel $ \ interpreter mockServer dbSync -> do
318
318
startDBSync dbSync
319
319
320
- let txOutTableType = txOutTableTypeFromConfig dbSync
320
+ let txOutTableType = txOutVariantTypeFromConfig dbSync
321
321
-- Forge some blocks
322
322
void $ forgeAndSubmitBlocks interpreter mockServer 76
323
323
blk77 <- forgeNextFindLeaderAndSubmit interpreter mockServer []
@@ -357,7 +357,7 @@ noPruneSameBlockWithAddress = performNoPruneSameBlock True
357
357
358
358
performNoPruneSameBlock :: Bool -> IOManager -> [(Text , Text )] -> Assertion
359
359
performNoPruneSameBlock useTxOutAddress =
360
- withCustomConfigAndDropDB cmdLineArgs (Just $ configConsume useTxOutAddress) conwayConfigDir testLabel $ \ interpreter mockServer dbSync -> do
360
+ withCustomConfigDropDB cmdLineArgs (Just $ configConsume useTxOutAddress) conwayConfigDir testLabel $ \ interpreter mockServer dbSync -> do
361
361
startDBSync dbSync
362
362
363
363
-- Forge some blocks
@@ -382,7 +382,7 @@ performNoPruneSameBlock useTxOutAddress =
382
382
void $ forgeNextFindLeaderAndSubmit interpreter mockServer []
383
383
-- Verify everything was pruned
384
384
assertBlockNoBackoff dbSync 98
385
- assertEqQuery dbSync (DB. queryTxOutConsumedCount $ txOutTableTypeFromConfig dbSync) 0 " Unexpected TxOutConsumedByTxId after rollback"
385
+ assertEqQuery dbSync (DB. queryTxOutConsumedCount $ txOutVariantTypeFromConfig dbSync) 0 " Unexpected TxOutConsumedByTxId after rollback"
386
386
where
387
387
cmdLineArgs = initCommandLineArgs
388
388
testLabel = " conwayConfigNoPruneSameBlock"
@@ -395,7 +395,7 @@ migrateAndPruneRestartWithAddress = performMigrateAndPruneRestart True
395
395
396
396
performMigrateAndPruneRestart :: Bool -> IOManager -> [(Text , Text )] -> Assertion
397
397
performMigrateAndPruneRestart useTxOutAddress =
398
- withCustomConfigAndDropDB cmdLineArgs (Just $ configConsume useTxOutAddress) conwayConfigDir testLabel $ \ interpreter mockServer dbSync -> do
398
+ withCustomConfigDropDB cmdLineArgs (Just $ configConsume useTxOutAddress) conwayConfigDir testLabel $ \ interpreter mockServer dbSync -> do
399
399
startDBSync dbSync
400
400
401
401
-- Forge some blocks
@@ -424,7 +424,7 @@ pruneRestartMissingFlagWithAddress = performPruneRestartMissingFlag True
424
424
425
425
performPruneRestartMissingFlag :: Bool -> IOManager -> [(Text , Text )] -> Assertion
426
426
performPruneRestartMissingFlag useTxOutAddress =
427
- withCustomConfigAndDropDB cmdLineArgs (Just $ configPruneForceTxIn useTxOutAddress) conwayConfigDir testLabel $ \ interpreter mockServer dbSync -> do
427
+ withCustomConfigDropDB cmdLineArgs (Just $ configPruneForceTxIn useTxOutAddress) conwayConfigDir testLabel $ \ interpreter mockServer dbSync -> do
428
428
startDBSync dbSync
429
429
430
430
-- Forge some blocks
@@ -453,7 +453,7 @@ bootstrapRestartMissingFlagWithAddress = performBootstrapRestartMissingFlag True
453
453
454
454
performBootstrapRestartMissingFlag :: Bool -> IOManager -> [(Text , Text )] -> Assertion
455
455
performBootstrapRestartMissingFlag useTxOutAddress =
456
- withCustomConfigAndDropDB cmdLineArgs (Just $ configBootstrap useTxOutAddress) conwayConfigDir testLabel $ \ interpreter mockServer dbSync -> do
456
+ withCustomConfigDropDB cmdLineArgs (Just $ configBootstrap useTxOutAddress) conwayConfigDir testLabel $ \ interpreter mockServer dbSync -> do
457
457
startDBSync dbSync
458
458
459
459
-- Forge some blocks
@@ -476,7 +476,7 @@ performBootstrapRestartMissingFlag useTxOutAddress =
476
476
477
477
populateDbRestartWithAddressConfig :: IOManager -> [(Text , Text )] -> Assertion
478
478
populateDbRestartWithAddressConfig =
479
- withCustomConfigAndDropDB cmdLineArgs (Just $ configConsume False ) conwayConfigDir testLabel $ \ interpreter mockServer dbSync -> do
479
+ withCustomConfigDropDB cmdLineArgs (Just $ configConsume False ) conwayConfigDir testLabel $ \ interpreter mockServer dbSync -> do
480
480
startDBSync dbSync
481
481
482
482
-- Forge some blocks
0 commit comments