aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJon Atack <jon@atack.com>2023-03-29 14:24:14 -0700
committerJon Atack <jon@atack.com>2023-04-10 10:41:56 -0700
commit9ea8b3739a863b0ad87593639476b3cd712ff0dc (patch)
tree62e6795b0f7e41962a5af6f9d2bcbd6da9e21761
parent645d7f75ac1b40e4ea88119b3711f89943d35d6c (diff)
downloadbitcoin-9ea8b3739a863b0ad87593639476b3cd712ff0dc.tar.xz
test: createwallet "warning" field deprecation test
-rwxr-xr-xtest/functional/wallet_createwallet.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/test/functional/wallet_createwallet.py b/test/functional/wallet_createwallet.py
index 15c0c07b0c..6258eb49d4 100755
--- a/test/functional/wallet_createwallet.py
+++ b/test/functional/wallet_createwallet.py
@@ -194,6 +194,11 @@ class CreateWalletTest(BitcoinTestFramework):
"warnings": [EMPTY_PASSPHRASE_MSG, LEGACY_WALLET_MSG],
})
+ self.log.info('Test "warning" field deprecation, i.e. not returned without -deprecatedrpc=walletwarningfield')
+ self.restart_node(0, extra_args=[])
+ result = self.nodes[0].createwallet(wallet_name="w7_again", disable_private_keys=False, blank=False, passphrase="")
+ assert "warning" not in result
+
if __name__ == '__main__':
CreateWalletTest().main()