diff options
author | Russell Yanofsky <russ@yanofsky.org> | 2020-05-28 11:31:02 -0400 |
---|---|---|
committer | Russell Yanofsky <russ@yanofsky.org> | 2020-06-05 08:29:18 -0400 |
commit | f42f5e58f5fd063d5feec3eadf4a4040a941d4af (patch) | |
tree | 7f88cc4004d292e5cb77464bb79fa84e096e78f4 /src/wallet/rpcwallet.h | |
parent | 0fc6ea216c00fff470bd876c53418afca63bf7e9 (diff) | |
download | bitcoin-f42f5e58f5fd063d5feec3eadf4a4040a941d4af.tar.xz |
refactor: Combine GetWalletForJSONRPCRequest and EnsureWalletIsAvailable functions
This simplifies control flow and also helps get rid of the ::vpwallets
variable, because EnsureWalletIsAvailable doesn't have access to the request
context.
Diffstat (limited to 'src/wallet/rpcwallet.h')
-rw-r--r-- | src/wallet/rpcwallet.h | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/src/wallet/rpcwallet.h b/src/wallet/rpcwallet.h index d00221a04c..fb1e91282b 100644 --- a/src/wallet/rpcwallet.h +++ b/src/wallet/rpcwallet.h @@ -31,7 +31,6 @@ Span<const CRPCCommand> GetWalletRPCCommands(); std::shared_ptr<CWallet> GetWalletForJSONRPCRequest(const JSONRPCRequest& request); void EnsureWalletIsUnlocked(const CWallet*); -bool EnsureWalletIsAvailable(const CWallet*, bool avoidException); WalletContext& EnsureWalletContext(const util::Ref& context); LegacyScriptPubKeyMan& EnsureLegacyScriptPubKeyMan(CWallet& wallet, bool also_create = false); |