aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorJon Atack <jon@atack.com>2020-10-15 16:46:34 +0200
committerJon Atack <jon@atack.com>2020-10-15 16:46:34 +0200
commit624bab00dd2cc8e2ebd77dc0a669bc8d507c3721 (patch)
treeb1aef14c0e63f0e1277815461dfc11c89a7b4980 /test
parent5e737a009234cbd7cf53748d3d28a2da5221192f (diff)
downloadbitcoin-624bab00dd2cc8e2ebd77dc0a669bc8d507c3721.tar.xz
test: add coverage for getwalletinfo format field
Diffstat (limited to 'test')
-rwxr-xr-xtest/functional/wallet_descriptor.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/test/functional/wallet_descriptor.py b/test/functional/wallet_descriptor.py
index 62eb15f87a..51e9ec8f40 100755
--- a/test/functional/wallet_descriptor.py
+++ b/test/functional/wallet_descriptor.py
@@ -21,6 +21,9 @@ class WalletDescriptorTest(BitcoinTestFramework):
self.skip_if_no_wallet()
def run_test(self):
+ wallet_info = self.nodes[0].getwalletinfo()
+ assert_equal(wallet_info['format'], 'bdb')
+
# Make a descriptor wallet
self.log.info("Making a descriptor wallet")
self.nodes[0].createwallet(wallet_name="desc1", descriptors=True)
@@ -29,6 +32,7 @@ class WalletDescriptorTest(BitcoinTestFramework):
# A descriptor wallet should have 100 addresses * 3 types = 300 keys
self.log.info("Checking wallet info")
wallet_info = self.nodes[0].getwalletinfo()
+ assert_equal(wallet_info['format'], 'sqlite')
assert_equal(wallet_info['keypoolsize'], 300)
assert_equal(wallet_info['keypoolsize_hd_internal'], 300)
assert 'keypoololdest' not in wallet_info