diff options
author | Andrew Chow <achow101-github@achow101.com> | 2021-06-23 16:11:51 -0400 |
---|---|---|
committer | Andrew Chow <achow101-github@achow101.com> | 2021-11-16 12:20:13 -0500 |
commit | 8fb57845ee3844c9ba854471065109d2e409300f (patch) | |
tree | 941d73885c9006ba6af443199430c39375e98817 /test/functional/tool_wallet.py | |
parent | 54b3699862de687f782c7c52500d6a2372478355 (diff) | |
download | bitcoin-8fb57845ee3844c9ba854471065109d2e409300f.tar.xz |
Create a tr() descriptor bech32m DescriptorScriptPubKeyMan by default
Diffstat (limited to 'test/functional/tool_wallet.py')
-rwxr-xr-x | test/functional/tool_wallet.py | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/test/functional/tool_wallet.py b/test/functional/tool_wallet.py index 616ac29b15..afe4dba7b4 100755 --- a/test/functional/tool_wallet.py +++ b/test/functional/tool_wallet.py @@ -70,8 +70,8 @@ class ToolWalletTest(BitcoinTestFramework): def get_expected_info_output(self, name="", transactions=0, keypool=2, address=0): wallet_name = self.default_wallet_name if name == "" else name - output_types = 3 # p2pkh, p2sh, segwit if self.options.descriptors: + output_types = 4 # p2pkh, p2sh, segwit, bech32m return textwrap.dedent('''\ Wallet info =========== @@ -85,6 +85,7 @@ class ToolWalletTest(BitcoinTestFramework): Address Book: %d ''' % (wallet_name, keypool * output_types, transactions, address)) else: + output_types = 3 # p2pkh, p2sh, segwit. Legacy wallets do not support bech32m. return textwrap.dedent('''\ Wallet info =========== @@ -298,8 +299,8 @@ class ToolWalletTest(BitcoinTestFramework): assert_equal(1000, out['keypoolsize_hd_internal']) assert_equal(True, 'hdseedid' in out) else: - assert_equal(3000, out['keypoolsize']) - assert_equal(3000, out['keypoolsize_hd_internal']) + assert_equal(4000, out['keypoolsize']) + assert_equal(4000, out['keypoolsize_hd_internal']) self.log_wallet_timestamp_comparison(timestamp_before, timestamp_after) assert_equal(timestamp_before, timestamp_after) |