diff options
author | Andrew Chow <github@achow101.com> | 2022-12-06 22:03:24 -0500 |
---|---|---|
committer | Andrew Chow <github@achow101.com> | 2022-12-09 13:57:01 -0500 |
commit | 544cbf776cf25d90ea4b96d92e7ee6e316576038 (patch) | |
tree | 4e7e94f660a7a6b4bcf9bd0dda53a91ddb9a5f42 /test/functional/test_framework | |
parent | 4ad7272f8b24843582e05e7dfc15f1e058e1a0f3 (diff) |
tests: Use batched RPC in feature_fee_estimation
feature_fee_estimation has a lot of loops that hit the RPC many times in
succession in order to setup scenarios. Using batched requests for these
can reduce the test's runtime without effecting the test's behavior.
Diffstat (limited to 'test/functional/test_framework')
-rw-r--r-- | test/functional/test_framework/wallet.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/test/functional/test_framework/wallet.py b/test/functional/test_framework/wallet.py index a94b9fe3fd..ecde329a1e 100644 --- a/test/functional/test_framework/wallet.py +++ b/test/functional/test_framework/wallet.py @@ -141,6 +141,10 @@ class MiniWallet: if out['scriptPubKey']['hex'] == self._scriptPubKey.hex(): self._utxos.append(self._create_utxo(txid=tx["txid"], vout=out["n"], value=out["value"], height=0)) + def scan_txs(self, txs): + for tx in txs: + self.scan_tx(tx) + def sign_tx(self, tx, fixed_length=True): """Sign tx that has been created by MiniWallet in P2PK mode""" assert_equal(self._mode, MiniWalletMode.RAW_P2PK) |