aboutsummaryrefslogtreecommitdiff
path: root/test/functional/interface_bitcoin_cli.py
diff options
context:
space:
mode:
authorSebastian Falbesoner <sebastian.falbesoner@gmail.com>2021-12-08 19:57:43 +0100
committerSebastian Falbesoner <sebastian.falbesoner@gmail.com>2021-12-08 19:57:43 +0100
commit84bc35d7a5b91c50cb58ff844e7fc7d9f026cc76 (patch)
tree9f27e8fc8e0484a031875d57530a8e1338b3ac59 /test/functional/interface_bitcoin_cli.py
parentf727d814bd8df5a5346c128dd4573e457c1970e1 (diff)
downloadbitcoin-84bc35d7a5b91c50cb58ff844e7fc7d9f026cc76.tar.xz
test: feature_rbf.py: check specified wallet type availability
The test currently leads to a failure if in general wallet support is compiled, but the library for the specified type (BDB/SQLite) is not, i.e. if started with the `--legacy-wallet` parameter, but bitcoind is compiled without BDB support. Fix this by checking if the specified wallet type (BDB for legacy wallet, SQLite for descriptor wallet) is available. Also move the helper `is_specified_wallet_compiled()` to the test framework's class BitcoinTestFramework first, so it can be reused.
Diffstat (limited to 'test/functional/interface_bitcoin_cli.py')
-rwxr-xr-xtest/functional/interface_bitcoin_cli.py6
1 files changed, 0 insertions, 6 deletions
diff --git a/test/functional/interface_bitcoin_cli.py b/test/functional/interface_bitcoin_cli.py
index 034edd709e..2ea9ebfc98 100755
--- a/test/functional/interface_bitcoin_cli.py
+++ b/test/functional/interface_bitcoin_cli.py
@@ -66,12 +66,6 @@ def cli_get_info_string_to_dict(cli_get_info_string):
class TestBitcoinCli(BitcoinTestFramework):
- def is_specified_wallet_compiled(self):
- if self.options.descriptors:
- return self.is_sqlite_compiled()
- else:
- return self.is_bdb_compiled()
-
def set_test_params(self):
self.setup_clean_chain = True
self.num_nodes = 1