Skip to content

Commit d794d0d

Browse files
committed
Remove unused imports from rpc/wallet and reorder RPCs
1 parent e116b97 commit d794d0d

File tree

2 files changed

+20
-35
lines changed

2 files changed

+20
-35
lines changed

src/wallet/rpc/wallet.cpp

Lines changed: 20 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -3,38 +3,20 @@
33
// Distributed under the MIT software license, see the accompanying
44
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
55

6-
#include <consensus/amount.h>
76
#include <core_io.h>
8-
#include <interfaces/chain.h>
97
#include <key_io.h>
10-
#include <node/context.h>
11-
#include <outputtype.h>
12-
#include <policy/feerate.h>
13-
#include <policy/fees.h>
14-
#include <policy/rbf.h>
158
#include <rpc/server.h>
169
#include <rpc/util.h>
17-
#include <script/descriptor.h>
18-
#include <script/sign.h>
19-
#include <util/string.h>
20-
#include <util/system.h>
2110
#include <util/translation.h>
22-
#include <wallet/coincontrol.h>
23-
#include <wallet/load.h>
2411
#include <wallet/receive.h>
2512
#include <wallet/rpc/wallet.h>
2613
#include <wallet/rpc/util.h>
2714
#include <wallet/wallet.h>
28-
#include <wallet/walletdb.h>
29-
#include <wallet/walletutil.h>
3015

3116
#include <optional>
32-
#include <stdint.h>
3317

3418
#include <univalue.h>
3519

36-
#include <map>
37-
3820

3921
/** Checks if a CKey is in the given CWallet compressed or otherwise*/
4022
bool HaveKey(const SigningProvider& wallet, const CKey& key)
@@ -592,6 +574,22 @@ static RPCHelpMan upgradewallet()
592574
};
593575
}
594576

577+
// addresses
578+
RPCHelpMan getaddressinfo();
579+
RPCHelpMan getnewaddress();
580+
RPCHelpMan getrawchangeaddress();
581+
RPCHelpMan setlabel();
582+
RPCHelpMan listaddressgroupings();
583+
RPCHelpMan addmultisigaddress();
584+
RPCHelpMan keypoolrefill();
585+
RPCHelpMan newkeypool();
586+
RPCHelpMan getaddressesbylabel();
587+
RPCHelpMan listlabels();
588+
#ifdef ENABLE_EXTERNAL_SIGNER
589+
RPCHelpMan walletdisplayaddress();
590+
#endif // ENABLE_EXTERNAL_SIGNER
591+
592+
// backup
595593
RPCHelpMan abortrescan();
596594
RPCHelpMan dumpprivkey();
597595
RPCHelpMan importprivkey();
@@ -604,24 +602,9 @@ RPCHelpMan removeprunedfunds();
604602
RPCHelpMan importmulti();
605603
RPCHelpMan importdescriptors();
606604
RPCHelpMan listdescriptors();
607-
RPCHelpMan signmessage();
608605
RPCHelpMan backupwallet();
609606
RPCHelpMan restorewallet();
610607

611-
// addresses
612-
RPCHelpMan getnewaddress();
613-
RPCHelpMan getrawchangeaddress();
614-
RPCHelpMan setlabel();
615-
RPCHelpMan listaddressgroupings();
616-
RPCHelpMan addmultisigaddress();
617-
RPCHelpMan keypoolrefill();
618-
RPCHelpMan newkeypool();
619-
RPCHelpMan getaddressesbylabel();
620-
RPCHelpMan listlabels();
621-
#ifdef ENABLE_EXTERNAL_SIGNER
622-
RPCHelpMan walletdisplayaddress();
623-
#endif // ENABLE_EXTERNAL_SIGNER
624-
625608
// coins
626609
RPCHelpMan getreceivedbyaddress();
627610
RPCHelpMan getreceivedbylabel();
@@ -648,6 +631,10 @@ RPCHelpMan psbtbumpfee();
648631
RPCHelpMan send();
649632
RPCHelpMan walletprocesspsbt();
650633
RPCHelpMan walletcreatefundedpsbt();
634+
RPCHelpMan signrawtransactionwithwallet();
635+
636+
// signmessage
637+
RPCHelpMan signmessage();
651638

652639
// transactions
653640
RPCHelpMan listreceivedbyaddress();

src/wallet/rpc/wallet.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,4 @@ class CRPCCommand;
1111

1212
Span<const CRPCCommand> GetWalletRPCCommands();
1313

14-
RPCHelpMan getaddressinfo();
15-
RPCHelpMan signrawtransactionwithwallet();
1614
#endif // BITCOIN_WALLET_RPC_WALLET_H

0 commit comments

Comments
 (0)