aboutsummaryrefslogtreecommitdiff
path: root/test/functional/test_framework
diff options
context:
space:
mode:
authorGreg Sanders <gsanders87@gmail.com>2024-04-08 15:10:16 +0200
committerGreg Sanders <gsanders87@gmail.com>2024-04-09 14:53:34 +0200
commitf3aa5bd5eb6d1088f98a4dc7daaab0e17a7d5529 (patch)
treeda732d49825e36ea9141b404a1362e1ad023be8e /test/functional/test_framework
parenta3da63e8febe475f2250f6432bca237d31fa9107 (diff)
downloadbitcoin-f3aa5bd5eb6d1088f98a4dc7daaab0e17a7d5529.tar.xz
fill_mempool: assertions and docsctring update
Diffstat (limited to 'test/functional/test_framework')
-rw-r--r--test/functional/test_framework/util.py12
1 files changed, 11 insertions, 1 deletions
diff --git a/test/functional/test_framework/util.py b/test/functional/test_framework/util.py
index 79aebd2d7a..dbaf42fdaa 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