mirror of
https://github.com/Retropex/bitcoin.git
synced 2025-05-20 07:00:44 +02:00
refactor: Remove unused function
This commit is contained in:
parent
e45b7f20e6
commit
bb6195e34d
@ -3881,19 +3881,6 @@ UniValue sethdseed(const JSONRPCRequest& request)
|
|||||||
return NullUniValue;
|
return NullUniValue;
|
||||||
}
|
}
|
||||||
|
|
||||||
void AddKeypathToMap(const CWallet* pwallet, const CKeyID& keyID, std::map<CPubKey, KeyOriginInfo>& hd_keypaths)
|
|
||||||
{
|
|
||||||
CPubKey vchPubKey;
|
|
||||||
if (!pwallet->GetPubKey(keyID, vchPubKey)) {
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
KeyOriginInfo info;
|
|
||||||
if (!pwallet->GetKeyOrigin(keyID, info)) {
|
|
||||||
throw JSONRPCError(RPC_INTERNAL_ERROR, "Internal keypath is broken");
|
|
||||||
}
|
|
||||||
hd_keypaths.emplace(vchPubKey, std::move(info));
|
|
||||||
}
|
|
||||||
|
|
||||||
UniValue walletprocesspsbt(const JSONRPCRequest& request)
|
UniValue walletprocesspsbt(const JSONRPCRequest& request)
|
||||||
{
|
{
|
||||||
std::shared_ptr<CWallet> const wallet = GetWalletForJSONRPCRequest(request);
|
std::shared_ptr<CWallet> const wallet = GetWalletForJSONRPCRequest(request);
|
||||||
|
Loading…
Reference in New Issue
Block a user