Allow createwallet to take empty passwords to make unencrypted wallets

Allow createwallet to take the empty string as a password and interpret that
as leaving the wallet unencrypted. Also warn when that happens.
This commit is contained in:
Andrew Chow
2019-07-15 15:33:56 -04:00
parent b21acab82f
commit c5d3787367
3 changed files with 27 additions and 7 deletions

View File

@@ -0,0 +1,4 @@
RPC changes
-----------
`createwallet` now returns a warning if an empty string is used as an encryption password, and does not encrypt the wallet, instead of raising an error.
This makes it easier to disable encryption but also specify other options when using the `bitcoin-cli` tool.