Changeset View
Changeset View
Standalone View
Standalone View
src/rpc/server.h
Show First 20 Lines • Show All 237 Lines • ▼ Show 20 Lines | public: | ||||
* Returns false if RPC server is already running (dump concurrency | * Returns false if RPC server is already running (dump concurrency | ||||
* protection). | * protection). | ||||
* Commands cannot be overwritten (returns false). | * Commands cannot be overwritten (returns false). | ||||
*/ | */ | ||||
bool appendCommand(const std::string &name, | bool appendCommand(const std::string &name, | ||||
const ContextFreeRPCCommand *pcmd); | const ContextFreeRPCCommand *pcmd); | ||||
}; | }; | ||||
bool IsDeprecatedRPCEnabled(const std::string &method); | |||||
extern CRPCTable tableRPC; | extern CRPCTable tableRPC; | ||||
/** | /** | ||||
* Utilities: convert hex-encoded values (throws error if not hex). | * Utilities: convert hex-encoded values (throws error if not hex). | ||||
*/ | */ | ||||
extern uint256 ParseHashV(const UniValue &v, std::string strName); | extern uint256 ParseHashV(const UniValue &v, std::string strName); | ||||
extern uint256 ParseHashO(const UniValue &o, std::string strKey); | extern uint256 ParseHashO(const UniValue &o, std::string strKey); | ||||
extern std::vector<uint8_t> ParseHexV(const UniValue &v, std::string strName); | extern std::vector<uint8_t> ParseHexV(const UniValue &v, std::string strName); | ||||
Show All 22 Lines |