Changeset View
Changeset View
Standalone View
Standalone View
src/rpc/util.h
Show All 28 Lines | |||||
/** | /** | ||||
* String used to describe UNIX epoch time in documentation, factored out to a | * String used to describe UNIX epoch time in documentation, factored out to a | ||||
* constant for consistency. | * constant for consistency. | ||||
*/ | */ | ||||
extern const std::string UNIX_EPOCH_TIME; | extern const std::string UNIX_EPOCH_TIME; | ||||
/** | /** | ||||
* Example CashAddr address used in multiple RPCExamples. | |||||
*/ | |||||
extern const std::string EXAMPLE_ADDRESS; | |||||
/** | |||||
* Wrapper for UniValue::VType, which includes typeAny: used to denote don't | * Wrapper for UniValue::VType, which includes typeAny: used to denote don't | ||||
* care type. | * care type. | ||||
*/ | */ | ||||
struct UniValueType { | struct UniValueType { | ||||
UniValueType(UniValue::VType _type) : typeAny(false), type(_type) {} | UniValueType(UniValue::VType _type) : typeAny(false), type(_type) {} | ||||
UniValueType() : typeAny(true) {} | UniValueType() : typeAny(true) {} | ||||
bool typeAny; | bool typeAny; | ||||
UniValue::VType type; | UniValue::VType type; | ||||
▲ Show 20 Lines • Show All 236 Lines • Show Last 20 Lines |