diff options
author | Russell Yanofsky <russ@yanofsky.org> | 2021-01-29 18:09:46 -0500 |
---|---|---|
committer | Russell Yanofsky <russ@yanofsky.org> | 2021-01-29 18:09:46 -0500 |
commit | 6158a6d3978a18d5ac4166ca2f59056d8ef71c3d (patch) | |
tree | 13a8ad94af645984bb524c0a3e0db638b10f0430 /src/wallet/rpcwallet.cpp | |
parent | 80e16cadd56ca73b94b01c5cd98a325fe9d89bf3 (diff) | |
download | bitcoin-6158a6d3978a18d5ac4166ca2f59056d8ef71c3d.tar.xz |
refactor: Replace JSONRPCRequest fHelp field with mode field
No change in behavior
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 46de273d63..2b613a0d32 100644 --- a/src/wallet/rpcwallet.cpp +++ b/src/wallet/rpcwallet.cpp @@ -96,7 +96,7 @@ bool GetWalletNameFromJSONRPCRequest(const JSONRPCRequest& request, std::string& std::shared_ptr<CWallet> GetWalletForJSONRPCRequest(const JSONRPCRequest& request) { - CHECK_NONFATAL(!request.fHelp); + CHECK_NONFATAL(request.mode == JSONRPCRequest::EXECUTE); std::string wallet_name; if (GetWalletNameFromJSONRPCRequest(request, wallet_name)) { std::shared_ptr<CWallet> pwallet = GetWallet(wallet_name); |