Changeset View
Changeset View
Standalone View
Standalone View
src/rpc/jsonrpcrequest.cpp
// Copyright (c) 2018 The Bitcoin developers | // Copyright (c) 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. | ||||
#include "rpc/jsonrpcrequest.h" | #include <logging.h> | ||||
#include "logging.h" | #include <rpc/jsonrpcrequest.h> | ||||
#include "rpc/protocol.h" | #include <rpc/protocol.h> | ||||
#include "tinyformat.h" | #include <tinyformat.h> | ||||
#include "utilstrencodings.h" | #include <utilstrencodings.h> | ||||
#include <univalue.h> | #include <univalue.h> | ||||
void JSONRPCRequest::parse(const UniValue &valRequest) { | void JSONRPCRequest::parse(const UniValue &valRequest) { | ||||
// Parse request | // Parse request | ||||
if (!valRequest.isObject()) { | if (!valRequest.isObject()) { | ||||
throw JSONRPCError(RPC_INVALID_REQUEST, "Invalid Request object"); | throw JSONRPCError(RPC_INVALID_REQUEST, "Invalid Request object"); | ||||
} | } | ||||
Show All 30 Lines |