aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Chow <achow101-github@achow101.com>2020-10-21 12:38:05 -0400
committerAndrew Chow <achow101-github@achow101.com>2020-10-29 14:59:29 -0400
commit7411876c75471a45ad40c38c668db3a4b9413fb9 (patch)
tree2d275722edd4f734878802b47aa6a64997495c88
parent586640381a2c379ce3d6366b1b4534ccc4e8ccf2 (diff)
downloadbitcoin-7411876c75471a45ad40c38c668db3a4b9413fb9.tar.xz
Ensure a legacy wallet for BDB format check
-rwxr-xr-xtest/functional/wallet_descriptor.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/test/functional/wallet_descriptor.py b/test/functional/wallet_descriptor.py
index 9282809530..0fec8ea4a4 100755
--- a/test/functional/wallet_descriptor.py
+++ b/test/functional/wallet_descriptor.py
@@ -16,19 +16,22 @@ class WalletDescriptorTest(BitcoinTestFramework):
self.setup_clean_chain = True
self.num_nodes = 1
self.extra_args = [['-keypool=100']]
+ self.wallet_names = []
def skip_test_if_missing_module(self):
self.skip_if_no_wallet()
self.skip_if_no_sqlite()
def run_test(self):
+ # Make a legacy wallet and check it is BDB
+ self.nodes[0].createwallet(wallet_name="legacy1", descriptors=False)
wallet_info = self.nodes[0].getwalletinfo()
assert_equal(wallet_info['format'], 'bdb')
+ self.nodes[0].unloadwallet("legacy1")
# Make a descriptor wallet
self.log.info("Making a descriptor wallet")
self.nodes[0].createwallet(wallet_name="desc1", descriptors=True)
- self.nodes[0].unloadwallet(self.default_wallet_name)
# A descriptor wallet should have 100 addresses * 3 types = 300 keys
self.log.info("Checking wallet info")