test: speed up wallet_fundrawtransaction.py and wallet_sendall.py

This commit is contained in:
kdmukai
2022-12-16 20:13:59 -06:00
parent 6061eb6564
commit 31fdc54dba
2 changed files with 6 additions and 0 deletions

View File

@@ -983,6 +983,8 @@ class RawTransactionsTest(BitcoinTestFramework):
# are selected, the transaction will end up being too large, so it
# shouldn't use BnB and instead fall back to Knapsack but that behavior
# is not implemented yet. For now we just check that we get an error.
# First, force the wallet to bulk-generate the addresses we'll need.
recipient.keypoolrefill(1500)
for _ in range(1500):
outputs[recipient.getnewaddress()] = 0.1
wallet.sendmany("", outputs)