mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-06-16 03:43:04 +02:00
test: add coverage for getwalletinfo format field
This commit is contained in:
parent
5e737a0092
commit
624bab00dd
@ -21,6 +21,9 @@ class WalletDescriptorTest(BitcoinTestFramework):
|
|||||||
self.skip_if_no_wallet()
|
self.skip_if_no_wallet()
|
||||||
|
|
||||||
def run_test(self):
|
def run_test(self):
|
||||||
|
wallet_info = self.nodes[0].getwalletinfo()
|
||||||
|
assert_equal(wallet_info['format'], 'bdb')
|
||||||
|
|
||||||
# Make a descriptor wallet
|
# Make a descriptor wallet
|
||||||
self.log.info("Making a descriptor wallet")
|
self.log.info("Making a descriptor wallet")
|
||||||
self.nodes[0].createwallet(wallet_name="desc1", descriptors=True)
|
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
|
# A descriptor wallet should have 100 addresses * 3 types = 300 keys
|
||||||
self.log.info("Checking wallet info")
|
self.log.info("Checking wallet info")
|
||||||
wallet_info = self.nodes[0].getwalletinfo()
|
wallet_info = self.nodes[0].getwalletinfo()
|
||||||
|
assert_equal(wallet_info['format'], 'sqlite')
|
||||||
assert_equal(wallet_info['keypoolsize'], 300)
|
assert_equal(wallet_info['keypoolsize'], 300)
|
||||||
assert_equal(wallet_info['keypoolsize_hd_internal'], 300)
|
assert_equal(wallet_info['keypoolsize_hd_internal'], 300)
|
||||||
assert 'keypoololdest' not in wallet_info
|
assert 'keypoololdest' not in wallet_info
|
||||||
|
Loading…
x
Reference in New Issue
Block a user