Changeset View
Changeset View
Standalone View
Standalone View
src/rpc/server.h
// Copyright (c) 2010 Satoshi Nakamoto | // Copyright (c) 2010 Satoshi Nakamoto | ||||
// Copyright (c) 2009-2016 The Bitcoin Core developers | // Copyright (c) 2009-2016 The Bitcoin Core developers | ||||
// Copyright (c) 2017-2018 The Bitcoin developers | // Copyright (c) 2017-2018 The Bitcoin developers | ||||
// 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. | ||||
#ifndef BITCOIN_RPC_SERVER_H | #ifndef BITCOIN_RPC_SERVER_H | ||||
#define BITCOIN_RPC_SERVER_H | #define BITCOIN_RPC_SERVER_H | ||||
#include "amount.h" | #include "amount.h" | ||||
#include "rpc/jsonrpcrequest.h" | #include "rpc/jsonrpcrequest.h" | ||||
#include "rpc/protocol.h" | #include "rpc/protocol.h" | ||||
#include "uint256.h" | #include "uint256.h" | ||||
#include "util.h" | |||||
#include <cstdint> | #include <cstdint> | ||||
#include <functional> | #include <functional> | ||||
#include <list> | #include <list> | ||||
#include <map> | #include <map> | ||||
#include <string> | #include <string> | ||||
#include <boost/noncopyable.hpp> | #include <boost/noncopyable.hpp> | ||||
▲ Show 20 Lines • Show All 216 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); | bool IsDeprecatedRPCEnabled(ArgsManager &args, 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); | ||||
Show All 23 Lines |