diff options
Diffstat (limited to 'test/functional/test_framework/mempool_util.py')
-rw-r--r-- | test/functional/test_framework/mempool_util.py | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/test/functional/test_framework/mempool_util.py b/test/functional/test_framework/mempool_util.py index 4d4b00b8b6..230a95855b 100644 --- a/test/functional/test_framework/mempool_util.py +++ b/test/functional/test_framework/mempool_util.py @@ -5,6 +5,9 @@ """Helpful routines for mempool testing.""" from decimal import Decimal +from .blocktools import ( + COINBASE_MATURITY, +) from .util import ( assert_equal, assert_greater_than, @@ -38,8 +41,8 @@ def fill_mempool(test_framework, node, miniwallet): # 75 transactions each with a fee rate higher than the previous one test_framework.generate(miniwallet, 1 + (num_of_batches * tx_batch_size)) - # Mine COINBASE_MATURITY - 1 blocks so that the UTXOs are allowed to be spent - test_framework.generate(node, 100 - 1) + # Mine enough blocks so that the UTXOs are allowed to be spent + test_framework.generate(node, COINBASE_MATURITY - 1) # Get all UTXOs up front to ensure none of the transactions spend from each other, as that may # change their effective feerate and thus the order in which they are selected for eviction. |