mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-12-09 12:12:41 +01:00
refactor: Remove useless extern keyword
This commit is contained in:
@@ -72,10 +72,10 @@ void RPCTypeCheckObj(const UniValue& o,
|
||||
* Utilities: convert hex-encoded Values
|
||||
* (throws error if not hex).
|
||||
*/
|
||||
extern uint256 ParseHashV(const UniValue& v, std::string strName);
|
||||
extern uint256 ParseHashO(const UniValue& o, std::string strKey);
|
||||
extern std::vector<unsigned char> ParseHexV(const UniValue& v, std::string strName);
|
||||
extern std::vector<unsigned char> ParseHexO(const UniValue& o, std::string strKey);
|
||||
uint256 ParseHashV(const UniValue& v, std::string strName);
|
||||
uint256 ParseHashO(const UniValue& o, std::string strKey);
|
||||
std::vector<unsigned char> ParseHexV(const UniValue& v, std::string strName);
|
||||
std::vector<unsigned char> ParseHexO(const UniValue& o, std::string strKey);
|
||||
|
||||
/**
|
||||
* Validate and return a CAmount from a UniValue number or string.
|
||||
@@ -84,13 +84,13 @@ extern std::vector<unsigned char> ParseHexO(const UniValue& o, std::string strKe
|
||||
* @param[in] decimals Number of significant digits (default: 8).
|
||||
* @returns a CAmount if the various checks pass.
|
||||
*/
|
||||
extern CAmount AmountFromValue(const UniValue& value, int decimals = 8);
|
||||
CAmount AmountFromValue(const UniValue& value, int decimals = 8);
|
||||
|
||||
using RPCArgList = std::vector<std::pair<std::string, UniValue>>;
|
||||
extern std::string HelpExampleCli(const std::string& methodname, const std::string& args);
|
||||
extern std::string HelpExampleCliNamed(const std::string& methodname, const RPCArgList& args);
|
||||
extern std::string HelpExampleRpc(const std::string& methodname, const std::string& args);
|
||||
extern std::string HelpExampleRpcNamed(const std::string& methodname, const RPCArgList& args);
|
||||
std::string HelpExampleCli(const std::string& methodname, const std::string& args);
|
||||
std::string HelpExampleCliNamed(const std::string& methodname, const RPCArgList& args);
|
||||
std::string HelpExampleRpc(const std::string& methodname, const std::string& args);
|
||||
std::string HelpExampleRpcNamed(const std::string& methodname, const RPCArgList& args);
|
||||
|
||||
CPubKey HexToPubKey(const std::string& hex_in);
|
||||
CPubKey AddrToPubKey(const FillableSigningProvider& keystore, const std::string& addr_in);
|
||||
|
||||
Reference in New Issue
Block a user