aboutsummaryrefslogtreecommitdiff
path: root/test/functional/wallet_createwallet.py
diff options
context:
space:
mode:
authorFabian Jahr <fabian.jahr@whu.edu>2019-07-10 17:51:39 -0400
committerFabian Jahr <fjahr@protonmail.com>2019-07-19 14:34:33 -0400
commitba1f128d6c117a63d5d904b3956551bd83405ec9 (patch)
tree371eb735cdfc4bb62a70dacf8a8ef9edb3693b1a /test/functional/wallet_createwallet.py
parentd6649d16b57e20b05075f1c80d0de7ff32cca1a4 (diff)
downloadbitcoin-ba1f128d6c117a63d5d904b3956551bd83405ec9.tar.xz
Return error for ignored passphrase through disable private keys option
Diffstat (limited to 'test/functional/wallet_createwallet.py')
-rwxr-xr-xtest/functional/wallet_createwallet.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/test/functional/wallet_createwallet.py b/test/functional/wallet_createwallet.py
index c17949a2f6..294f90a0fa 100755
--- a/test/functional/wallet_createwallet.py
+++ b/test/functional/wallet_createwallet.py
@@ -119,5 +119,8 @@ class CreateWalletTest(BitcoinTestFramework):
# Empty passphrase, error
assert_raises_rpc_error(-16, 'Cannot encrypt a wallet with a blank password', self.nodes[0].createwallet, 'w7', False, False, '')
+ 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='w8', disable_private_keys=True, passphrase='thisisapassphrase')
+
if __name__ == '__main__':
CreateWalletTest().main()