Skip to content

Commit

Permalink
test: add coverage for getwalletinfo format field
Browse files Browse the repository at this point in the history
  • Loading branch information
jonatack committed Oct 15, 2020
1 parent 5e737a0 commit 624bab0
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions test/functional/wallet_descriptor.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,9 @@ def skip_test_if_missing_module(self):
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)
Expand All @@ -29,6 +32,7 @@ def run_test(self):
# 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
Expand Down

0 comments on commit 624bab0

Please sign in to comment.