mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-06-21 14:22:38 +02:00
tests: Do not always create a descriptor wallet in wallet_createwallet
The createwallet teswt for some invalid parameters incorrectly always creates a descriptor wallet. This is unnecessary and also breaks the test when bdb is not compiled in.
This commit is contained in:
parent
132d5f8c2f
commit
786b3a7c44
@ -29,7 +29,7 @@ class CreateWalletTest(BitcoinTestFramework):
|
|||||||
self.log.info("Run createwallet with invalid parameters.")
|
self.log.info("Run createwallet with invalid parameters.")
|
||||||
# Run createwallet with invalid parameters. This must not prevent a new wallet with the same name from being created with the correct parameters.
|
# Run createwallet with invalid parameters. This must not prevent a new wallet with the same name from being created with the correct parameters.
|
||||||
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.",
|
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='w0', descriptors=True, disable_private_keys=True, passphrase="passphrase")
|
self.nodes[0].createwallet, wallet_name='w0', disable_private_keys=True, passphrase="passphrase")
|
||||||
|
|
||||||
self.nodes[0].createwallet(wallet_name='w0')
|
self.nodes[0].createwallet(wallet_name='w0')
|
||||||
w0 = node.get_wallet_rpc('w0')
|
w0 = node.get_wallet_rpc('w0')
|
||||||
|
Loading…
x
Reference in New Issue
Block a user