From f3aa5bd5eb6d1088f98a4dc7daaab0e17a7d5529 Mon Sep 17 00:00:00 2001 From: Greg Sanders Date: Mon, 8 Apr 2024 15:10:16 +0200 Subject: [PATCH] fill_mempool: assertions and docsctring update --- test/functional/test_framework/util.py | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/test/functional/test_framework/util.py b/test/functional/test_framework/util.py index 79aebd2d7a8..dbaf42fdaa2 100644 --- a/test/functional/test_framework/util.py +++ b/test/functional/test_framework/util.py @@ -497,11 +497,21 @@ def check_node_connections(*, node, num_in, num_out): assert_equal(info["connections_out"], num_out) def fill_mempool(test_framework, node, miniwallet): - """Fill mempool until eviction.""" + """Fill mempool until eviction. + + Allows for simpler testing of scenarios with floating mempoolminfee > minrelay + Requires -datacarriersize=100000 and + -maxmempool=5. + It will not ensure mempools become synced as it + is based on a single node and assumes -minrelaytxfee + is 1 sat/vbyte. + """ test_framework.log.info("Fill the mempool until eviction is triggered and the mempoolminfee rises") txouts = gen_return_txouts() relayfee = node.getnetworkinfo()['relayfee'] + assert_equal(relayfee, Decimal('0.00001000')) + tx_batch_size = 1 num_of_batches = 75 # Generate UTXOs to flood the mempool