Changeset View
Changeset View
Standalone View
Standalone View
src/rpc/util.h
// Copyright (c) 2017-2019 The Bitcoin Core developers | // Copyright (c) 2017-2019 The Bitcoin Core 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_UTIL_H | #ifndef BITCOIN_RPC_UTIL_H | ||||
#define BITCOIN_RPC_UTIL_H | #define BITCOIN_RPC_UTIL_H | ||||
#include <node/transaction.h> | #include <node/transaction.h> | ||||
#include <outputtype.h> | #include <outputtype.h> | ||||
#include <protocol.h> | |||||
#include <rpc/protocol.h> | #include <rpc/protocol.h> | ||||
#include <rpc/request.h> | #include <rpc/request.h> | ||||
#include <script/script.h> | #include <script/script.h> | ||||
#include <script/sign.h> | #include <script/sign.h> | ||||
#include <script/standard.h> // For CTxDestination | #include <script/standard.h> // For CTxDestination | ||||
#include <univalue.h> | #include <univalue.h> | ||||
#include <util/check.h> | #include <util/check.h> | ||||
▲ Show 20 Lines • Show All 83 Lines • ▼ Show 20 Lines | |||||
/** | /** | ||||
* Evaluate a descriptor given as a string, or as a {"desc":...,"range":...} | * Evaluate a descriptor given as a string, or as a {"desc":...,"range":...} | ||||
* object, with default range of 1000. | * object, with default range of 1000. | ||||
*/ | */ | ||||
std::vector<CScript> | std::vector<CScript> | ||||
EvalDescriptorStringOrObject(const UniValue &scanobject, | EvalDescriptorStringOrObject(const UniValue &scanobject, | ||||
FlatSigningProvider &provider); | FlatSigningProvider &provider); | ||||
/** | |||||
* Returns, given services flags, a list of humanly readable (known) | |||||
* network services. | |||||
*/ | |||||
UniValue GetServicesNames(ServiceFlags services); | |||||
struct RPCArg { | struct RPCArg { | ||||
enum class Type { | enum class Type { | ||||
OBJ, | OBJ, | ||||
ARR, | ARR, | ||||
STR, | STR, | ||||
NUM, | NUM, | ||||
BOOL, | BOOL, | ||||
//! Special type where the user must set the keys e.g. to define | //! Special type where the user must set the keys e.g. to define | ||||
▲ Show 20 Lines • Show All 157 Lines • Show Last 20 Lines |