Skip to content

Commit f3aa5bd

Browse files
committed
fill_mempool: assertions and docsctring update
1 parent a3da63e commit f3aa5bd

File tree

1 file changed

+11
-1
lines changed
  • test/functional/test_framework

1 file changed

+11
-1
lines changed

test/functional/test_framework/util.py

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -497,11 +497,21 @@ def check_node_connections(*, node, num_in, num_out):
497497
assert_equal(info["connections_out"], num_out)
498498

499499
def fill_mempool(test_framework, node, miniwallet):
500-
"""Fill mempool until eviction."""
500+
"""Fill mempool until eviction.
501+
502+
Allows for simpler testing of scenarios with floating mempoolminfee > minrelay
503+
Requires -datacarriersize=100000 and
504+
-maxmempool=5.
505+
It will not ensure mempools become synced as it
506+
is based on a single node and assumes -minrelaytxfee
507+
is 1 sat/vbyte.
508+
"""
501509
test_framework.log.info("Fill the mempool until eviction is triggered and the mempoolminfee rises")
502510
txouts = gen_return_txouts()
503511
relayfee = node.getnetworkinfo()['relayfee']
504512

513+
assert_equal(relayfee, Decimal('0.00001000'))
514+
505515
tx_batch_size = 1
506516
num_of_batches = 75
507517
# Generate UTXOs to flood the mempool

0 commit comments

Comments
 (0)