Skip to content

Commit fa7b7f7

Browse files
author
MarcoFalke
committed
Remove HaveKey helper, unused after sethdseed removal
1 parent 59e09e0 commit fa7b7f7

File tree

1 file changed

+2
-11
lines changed

1 file changed

+2
-11
lines changed

src/wallet/rpc/wallet.cpp

Lines changed: 2 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -9,18 +9,17 @@
99
#include <key_io.h>
1010
#include <rpc/server.h>
1111
#include <rpc/util.h>
12+
#include <univalue.h>
1213
#include <util/translation.h>
1314
#include <wallet/context.h>
1415
#include <wallet/receive.h>
15-
#include <wallet/rpc/wallet.h>
1616
#include <wallet/rpc/util.h>
17+
#include <wallet/rpc/wallet.h>
1718
#include <wallet/wallet.h>
1819
#include <wallet/walletutil.h>
1920

2021
#include <optional>
2122

22-
#include <univalue.h>
23-
2423

2524
namespace wallet {
2625

@@ -31,14 +30,6 @@ static const std::map<uint64_t, std::string> WALLET_FLAG_CAVEATS{
3130
"be considered unused, even if the opposite is the case."},
3231
};
3332

34-
/** Checks if a CKey is in the given CWallet compressed or otherwise*/
35-
bool HaveKey(const SigningProvider& wallet, const CKey& key)
36-
{
37-
CKey key2;
38-
key2.Set(key.begin(), key.end(), !key.IsCompressed());
39-
return wallet.HaveKey(key.GetPubKey().GetID()) || wallet.HaveKey(key2.GetPubKey().GetID());
40-
}
41-
4233
static RPCHelpMan getwalletinfo()
4334
{
4435
return RPCHelpMan{"getwalletinfo",

0 commit comments

Comments
 (0)