File tree Expand file tree Collapse file tree 1 file changed +2
-11
lines changed Expand file tree Collapse file tree 1 file changed +2
-11
lines changed Original file line number Diff line number Diff line change 9
9
#include < key_io.h>
10
10
#include < rpc/server.h>
11
11
#include < rpc/util.h>
12
+ #include < univalue.h>
12
13
#include < util/translation.h>
13
14
#include < wallet/context.h>
14
15
#include < wallet/receive.h>
15
- #include < wallet/rpc/wallet.h>
16
16
#include < wallet/rpc/util.h>
17
+ #include < wallet/rpc/wallet.h>
17
18
#include < wallet/wallet.h>
18
19
#include < wallet/walletutil.h>
19
20
20
21
#include < optional>
21
22
22
- #include < univalue.h>
23
-
24
23
25
24
namespace wallet {
26
25
@@ -31,14 +30,6 @@ static const std::map<uint64_t, std::string> WALLET_FLAG_CAVEATS{
31
30
" be considered unused, even if the opposite is the case." },
32
31
};
33
32
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
-
42
33
static RPCHelpMan getwalletinfo ()
43
34
{
44
35
return RPCHelpMan{" getwalletinfo" ,
You can’t perform that action at this time.
0 commit comments