mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-11-12 06:58:57 +01:00
RPC/Wallet: Pass CWallet as pointer to helper functions
This commit is contained in:
@@ -603,7 +603,7 @@ UniValue signrawtransaction(const JSONRPCRequest& request)
|
||||
"The third optional argument (may be null) is an array of base58-encoded private\n"
|
||||
"keys that, if given, will be the only keys used to sign the transaction.\n"
|
||||
#ifdef ENABLE_WALLET
|
||||
+ HelpRequiringPassphrase() + "\n"
|
||||
+ HelpRequiringPassphrase(pwalletMain) + "\n"
|
||||
#endif
|
||||
|
||||
"\nArguments:\n"
|
||||
@@ -718,7 +718,7 @@ UniValue signrawtransaction(const JSONRPCRequest& request)
|
||||
}
|
||||
#ifdef ENABLE_WALLET
|
||||
else if (pwalletMain)
|
||||
EnsureWalletIsUnlocked();
|
||||
EnsureWalletIsUnlocked(pwalletMain);
|
||||
#endif
|
||||
|
||||
// Add previous txouts given in the RPC call:
|
||||
|
||||
Reference in New Issue
Block a user