aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Chow <[email protected]>2020-10-21 12:38:05 -0400
committerAndrew Chow <[email protected]>2020-10-29 14:59:29 -0400
commit7411876c75471a45ad40c38c668db3a4b9413fb9 (patch)
tree2d275722edd4f734878802b47aa6a64997495c88
parentSkip --descriptor tests if sqlite is not compiled (diff)
downloaddiscoin-7411876c75471a45ad40c38c668db3a4b9413fb9.tar.xz
discoin-7411876c75471a45ad40c38c668db3a4b9413fb9.zip
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 928280953..0fec8ea4a 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")