diff options
author | Andrew Chow <achow101-github@achow101.com> | 2022-03-08 11:42:11 -0500 |
---|---|---|
committer | Andrew Chow <achow101-github@achow101.com> | 2022-03-10 07:32:02 -0500 |
commit | 61152183ab18960c8b42cf22ff7168762946678e (patch) | |
tree | 6259d8cfcf2473bab3f353ddbd74ff90fd664a2b /test/functional/wallet_createwallet.py | |
parent | 64a4483dc6798a9a7d8327d320a17b3c4d7d4ee0 (diff) | |
download | bitcoin-61152183ab18960c8b42cf22ff7168762946678e.tar.xz |
wallet: Add a deprecation warning for newly created legacy wallets
Diffstat (limited to 'test/functional/wallet_createwallet.py')
-rwxr-xr-x | test/functional/wallet_createwallet.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/test/functional/wallet_createwallet.py b/test/functional/wallet_createwallet.py index 4416a9655f..e8234de032 100755 --- a/test/functional/wallet_createwallet.py +++ b/test/functional/wallet_createwallet.py @@ -164,5 +164,10 @@ class CreateWalletTest(BitcoinTestFramework): self.log.info('Using a passphrase with private keys disabled returns error') assert_raises_rpc_error(-4, 'Passphrase provided but private keys are disabled. A passphrase is only used to encrypt private keys, so cannot be used for wallets with private keys disabled.', self.nodes[0].createwallet, wallet_name='w9', disable_private_keys=True, passphrase='thisisapassphrase') + if self.is_bdb_compiled(): + self.log.info("Test legacy wallet deprecation") + res = self.nodes[0].createwallet(wallet_name="legacy_w0", descriptors=False, passphrase=None) + assert_equal(res["warning"], "Wallet created successfully. The legacy wallet type is being deprecated and support for creating and opening legacy wallets will be removed in the future.") + if __name__ == '__main__': CreateWalletTest().main() |