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:
2026-11-26 22:26:29 -06:00
co-authored by Claude Opus 5.5
parent 8e34bcbba7
commit 5770f73b3d
-17
View File
@@ -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)
{