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 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
2524namespace 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-
4233static RPCHelpMan getwalletinfo ()
4334{
4435 return RPCHelpMan{" getwalletinfo" ,
You can’t perform that action at this time.
0 commit comments