wallet/rpc: remove the unused Lock2NSPV/Unlock2NSPV
Neither has a caller anywhere in the tree. Both took cs_main and cs_wallet by hand, so any future caller that threw between them would have leaked both locks. Remove them rather than keep a trap. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -113,23 +113,6 @@ void EnsureWalletIsUnlocked()
|
||||
throw JSONRPCError(RPC_WALLET_UNLOCK_NEEDED, "Error: Please enter the wallet passphrase with walletpassphrase first.");
|
||||
}
|
||||
|
||||
void Lock2NSPV(const CPubKey &pk)
|
||||
{
|
||||
if (!pk.IsValid())
|
||||
{
|
||||
ENTER_CRITICAL_SECTION(cs_main);
|
||||
ENTER_CRITICAL_SECTION(pwalletMain->cs_wallet);
|
||||
}
|
||||
}
|
||||
|
||||
void Unlock2NSPV(const CPubKey &pk)
|
||||
{
|
||||
if (!pk.IsValid())
|
||||
{
|
||||
LEAVE_CRITICAL_SECTION(cs_main);
|
||||
LEAVE_CRITICAL_SECTION(pwalletMain->cs_wallet);
|
||||
}
|
||||
}
|
||||
|
||||
void WalletTxToJSON(const CWalletTx& wtx, UniValue& entry)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user