diff options
author | brunoerg <brunoely.gc@gmail.com> | 2023-03-14 10:18:47 -0300 |
---|---|---|
committer | brunoerg <brunoely.gc@gmail.com> | 2024-02-28 10:05:56 -0300 |
commit | c985eb854cc86deb747caea5283c17cf51b6a983 (patch) | |
tree | 0553e7ee41272adf7c448fc8705a0b97f2bca332 /test/functional/wallet_fundrawtransaction.py | |
parent | 66bc6e2d1749f43d7b314aa2784a06af78440170 (diff) | |
download | bitcoin-c985eb854cc86deb747caea5283c17cf51b6a983.tar.xz |
test: add option to speed up tx relay/mempool sync
when `self.noban_tx_relay=True`, the following flag
`-whitelist=noban,in,out@127.0.0.1`is added to `extra_args`
to speed up tx relay/mempool sync.
Diffstat (limited to 'test/functional/wallet_fundrawtransaction.py')
-rwxr-xr-x | test/functional/wallet_fundrawtransaction.py | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/test/functional/wallet_fundrawtransaction.py b/test/functional/wallet_fundrawtransaction.py index d886a59ac1..ff4648e638 100755 --- a/test/functional/wallet_fundrawtransaction.py +++ b/test/functional/wallet_fundrawtransaction.py @@ -45,9 +45,8 @@ class RawTransactionsTest(BitcoinTestFramework): def set_test_params(self): self.num_nodes = 4 self.setup_clean_chain = True - # This test isn't testing tx relay. Set whitelist on the peers for - # instant tx relay. - self.extra_args = [['-whitelist=noban@127.0.0.1']] * self.num_nodes + # whitelist peers to speed up tx relay / mempool sync + self.noban_tx_relay = True self.rpc_timeout = 90 # to prevent timeouts in `test_transaction_too_large` def skip_test_if_missing_module(self): |