mirror of
https://github.com/Retropex/bitcoin.git
synced 2025-06-02 23:42:33 +02:00
Remove unused imports from rpc/wallet and reorder RPCs
This commit is contained in:
parent
e116b9747d
commit
d794d0da8f
@ -3,38 +3,20 @@
|
|||||||
// Distributed under the MIT software license, see the accompanying
|
// Distributed under the MIT software license, see the accompanying
|
||||||
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
|
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
|
||||||
|
|
||||||
#include <consensus/amount.h>
|
|
||||||
#include <core_io.h>
|
#include <core_io.h>
|
||||||
#include <interfaces/chain.h>
|
|
||||||
#include <key_io.h>
|
#include <key_io.h>
|
||||||
#include <node/context.h>
|
|
||||||
#include <outputtype.h>
|
|
||||||
#include <policy/feerate.h>
|
|
||||||
#include <policy/fees.h>
|
|
||||||
#include <policy/rbf.h>
|
|
||||||
#include <rpc/server.h>
|
#include <rpc/server.h>
|
||||||
#include <rpc/util.h>
|
#include <rpc/util.h>
|
||||||
#include <script/descriptor.h>
|
|
||||||
#include <script/sign.h>
|
|
||||||
#include <util/string.h>
|
|
||||||
#include <util/system.h>
|
|
||||||
#include <util/translation.h>
|
#include <util/translation.h>
|
||||||
#include <wallet/coincontrol.h>
|
|
||||||
#include <wallet/load.h>
|
|
||||||
#include <wallet/receive.h>
|
#include <wallet/receive.h>
|
||||||
#include <wallet/rpc/wallet.h>
|
#include <wallet/rpc/wallet.h>
|
||||||
#include <wallet/rpc/util.h>
|
#include <wallet/rpc/util.h>
|
||||||
#include <wallet/wallet.h>
|
#include <wallet/wallet.h>
|
||||||
#include <wallet/walletdb.h>
|
|
||||||
#include <wallet/walletutil.h>
|
|
||||||
|
|
||||||
#include <optional>
|
#include <optional>
|
||||||
#include <stdint.h>
|
|
||||||
|
|
||||||
#include <univalue.h>
|
#include <univalue.h>
|
||||||
|
|
||||||
#include <map>
|
|
||||||
|
|
||||||
|
|
||||||
/** Checks if a CKey is in the given CWallet compressed or otherwise*/
|
/** Checks if a CKey is in the given CWallet compressed or otherwise*/
|
||||||
bool HaveKey(const SigningProvider& wallet, const CKey& key)
|
bool HaveKey(const SigningProvider& wallet, const CKey& key)
|
||||||
@ -592,23 +574,8 @@ static RPCHelpMan upgradewallet()
|
|||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
RPCHelpMan abortrescan();
|
|
||||||
RPCHelpMan dumpprivkey();
|
|
||||||
RPCHelpMan importprivkey();
|
|
||||||
RPCHelpMan importaddress();
|
|
||||||
RPCHelpMan importpubkey();
|
|
||||||
RPCHelpMan dumpwallet();
|
|
||||||
RPCHelpMan importwallet();
|
|
||||||
RPCHelpMan importprunedfunds();
|
|
||||||
RPCHelpMan removeprunedfunds();
|
|
||||||
RPCHelpMan importmulti();
|
|
||||||
RPCHelpMan importdescriptors();
|
|
||||||
RPCHelpMan listdescriptors();
|
|
||||||
RPCHelpMan signmessage();
|
|
||||||
RPCHelpMan backupwallet();
|
|
||||||
RPCHelpMan restorewallet();
|
|
||||||
|
|
||||||
// addresses
|
// addresses
|
||||||
|
RPCHelpMan getaddressinfo();
|
||||||
RPCHelpMan getnewaddress();
|
RPCHelpMan getnewaddress();
|
||||||
RPCHelpMan getrawchangeaddress();
|
RPCHelpMan getrawchangeaddress();
|
||||||
RPCHelpMan setlabel();
|
RPCHelpMan setlabel();
|
||||||
@ -622,6 +589,22 @@ RPCHelpMan listlabels();
|
|||||||
RPCHelpMan walletdisplayaddress();
|
RPCHelpMan walletdisplayaddress();
|
||||||
#endif // ENABLE_EXTERNAL_SIGNER
|
#endif // ENABLE_EXTERNAL_SIGNER
|
||||||
|
|
||||||
|
// backup
|
||||||
|
RPCHelpMan abortrescan();
|
||||||
|
RPCHelpMan dumpprivkey();
|
||||||
|
RPCHelpMan importprivkey();
|
||||||
|
RPCHelpMan importaddress();
|
||||||
|
RPCHelpMan importpubkey();
|
||||||
|
RPCHelpMan dumpwallet();
|
||||||
|
RPCHelpMan importwallet();
|
||||||
|
RPCHelpMan importprunedfunds();
|
||||||
|
RPCHelpMan removeprunedfunds();
|
||||||
|
RPCHelpMan importmulti();
|
||||||
|
RPCHelpMan importdescriptors();
|
||||||
|
RPCHelpMan listdescriptors();
|
||||||
|
RPCHelpMan backupwallet();
|
||||||
|
RPCHelpMan restorewallet();
|
||||||
|
|
||||||
// coins
|
// coins
|
||||||
RPCHelpMan getreceivedbyaddress();
|
RPCHelpMan getreceivedbyaddress();
|
||||||
RPCHelpMan getreceivedbylabel();
|
RPCHelpMan getreceivedbylabel();
|
||||||
@ -648,6 +631,10 @@ RPCHelpMan psbtbumpfee();
|
|||||||
RPCHelpMan send();
|
RPCHelpMan send();
|
||||||
RPCHelpMan walletprocesspsbt();
|
RPCHelpMan walletprocesspsbt();
|
||||||
RPCHelpMan walletcreatefundedpsbt();
|
RPCHelpMan walletcreatefundedpsbt();
|
||||||
|
RPCHelpMan signrawtransactionwithwallet();
|
||||||
|
|
||||||
|
// signmessage
|
||||||
|
RPCHelpMan signmessage();
|
||||||
|
|
||||||
// transactions
|
// transactions
|
||||||
RPCHelpMan listreceivedbyaddress();
|
RPCHelpMan listreceivedbyaddress();
|
||||||
|
@ -11,6 +11,4 @@ class CRPCCommand;
|
|||||||
|
|
||||||
Span<const CRPCCommand> GetWalletRPCCommands();
|
Span<const CRPCCommand> GetWalletRPCCommands();
|
||||||
|
|
||||||
RPCHelpMan getaddressinfo();
|
|
||||||
RPCHelpMan signrawtransactionwithwallet();
|
|
||||||
#endif // BITCOIN_WALLET_RPC_WALLET_H
|
#endif // BITCOIN_WALLET_RPC_WALLET_H
|
||||||
|
Loading…
Reference in New Issue
Block a user