Page MenuHomePhabricator

[backport#16144] wallet: do not encrypt wallets with disabled private keys
ClosedPublic

Authored by majcosta on Sep 4 2020, 18:31.

Details

Summary

wallet: do not encrypt wallets with disabled private keys (whythat)

Pull request description:

Fix for #15635.
Throw an `RPC_WALLET_ENCRYPTION_FAILED` error when attempting to encrypt wallet with disabled private keys. Changed `test/function/wallet_createwallet.py` to test new behavior.

Backport of Core PR16144

Test Plan
ninja check
test_runner.py wallet_createwallet

Diff Detail

Event Timeline

majcosta requested review of this revision.Sep 4 2020, 18:31

[Bot Message]
One or more PR numbers were detected in the summary.
Links to those PRs have been inserted into the summary for reference.

This revision is now accepted and ready to land.Sep 4 2020, 20:23