Skip to content

Commit 9e78943

Browse files
committed
test: speedup p2p_feefilter.py by whitelisting peers (immediate tx relay)
Most of the test time is spent in wait_for_invs() after sending to addresses, i.e. the bottleneck is in relaying transactions. By whitelisting the peers via -whitelist, the inventory is transmissioned immediately rather than on average every 5 seconds, speeding up the test significantly: before: $ time ./p2p_feefilter.py ... real 0m39.367s user 0m1.227s sys 0m0.571s with this commit: $ time ./p2p_feefilter.py ... real 0m9.386s user 0m1.120s sys 0m0.577s
1 parent fe3f0cc commit 9e78943

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

test/functional/p2p_feefilter.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,12 @@ def set_test_params(self):
5454
# mempool and wallet feerate calculation based on GetFee
5555
# rounding down 3 places, leading to stranded transactions.
5656
# See issue #16499
57-
self.extra_args = [["-minrelaytxfee=0.00000100", "-mintxfee=0.00000100"]] * self.num_nodes
57+
# grant noban permission to all peers to speed up tx relay / mempool sync
58+
self.extra_args = [[
59+
"-minrelaytxfee=0.00000100",
60+
"-mintxfee=0.00000100",
61+
62+
]] * self.num_nodes
5863

5964
def skip_test_if_missing_module(self):
6065
self.skip_if_no_wallet()

0 commit comments

Comments
 (0)