diff options
author | Andrew Chow <achow101-github@achow101.com> | 2019-08-14 14:25:53 -0400 |
---|---|---|
committer | Andrew Chow <achow101-github@achow101.com> | 2020-04-23 13:59:48 -0400 |
commit | ce24a944940019185efebcc5d85eac458ed26016 (patch) | |
tree | 82772b6c25fcecd552f51703f4a68326ff7326d5 /src/wallet/rpcwallet.cpp | |
parent | 1cb42b22b11c27e64462afc25a94b2fc50bfa113 (diff) | |
download | bitcoin-ce24a944940019185efebcc5d85eac458ed26016.tar.xz |
Add IsLegacy to CWallet so that the GUI knows whether to show watchonly
Diffstat (limited to 'src/wallet/rpcwallet.cpp')
-rw-r--r-- | src/wallet/rpcwallet.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/wallet/rpcwallet.cpp b/src/wallet/rpcwallet.cpp index 50aee04d8e..8776cc9bfe 100644 --- a/src/wallet/rpcwallet.cpp +++ b/src/wallet/rpcwallet.cpp @@ -1851,7 +1851,7 @@ static UniValue keypoolrefill(const JSONRPCRequest& request) }, }.Check(request); - if (pwallet->IsWalletFlagSet(WALLET_FLAG_DISABLE_PRIVATE_KEYS)) { + if (pwallet->IsLegacy() && pwallet->IsWalletFlagSet(WALLET_FLAG_DISABLE_PRIVATE_KEYS)) { throw JSONRPCError(RPC_WALLET_ERROR, "Error: Private keys are disabled for this wallet"); } |