As mentioned in the bitcoin-cli
document for encryptwallet
command, bitcoin daemon will shut down after encrypting a new or unencrypted wallet. My question is about the reason for shutting the node down?
Also, I want to create another bitcoin wallet and it's very strange if I need to start after adding a new wallet. this pull request tried to remove shutdown after encrypting a wallet. is it safe? and what's the best way to deal with this problem?
encryptwallet "passphrase"
Encrypts the wallet with 'passphrase'. This is for first time encryption. After this, any calls that interact with private keys such as sending or signing
will require the passphrase to be set prior the making these calls. Use the walletpassphrase call for this, and then walletlock call. If the wallet is already encrypted, use the walletpassphrasechange call. Note that this will shutdown the server.