22 const std::string random_string(buffer.begin(), buffer.end());
27 }
catch (
const std::runtime_error&) {
38 }
catch (
const std::runtime_error&) {
43 }
catch (
const std::runtime_error&) {
48 }
catch (
const std::runtime_error&) {
53 }
catch (
const std::runtime_error&) {
67 }
catch (
const std::runtime_error&) {
72 }
catch (
const std::runtime_error&) {
77 }
catch (
const std::runtime_error&) {
81 }
catch (
const std::runtime_error&) {
86 }
catch (
const std::runtime_error&) {
92 }
catch (
const std::runtime_error&) {
97 }
catch (
const std::runtime_error&) {
102 }
catch (
const std::runtime_error&) {
static CAmount AmountFromValue(const UniValue &value)
void SelectParams(const std::string &network)
Sets the params returned by Params() to those for the given chain name.
static const std::string REGTEST
Users of this module must hold an ECCVerifyHandle.
UniValue ParseNonRFCJSONValue(const std::string &strVal)
Non-RFC4627 JSON parser, accepts internal values (such as numbers, true, false, null) as well as obje...
std::vector< unsigned char > ParseHexUV(const UniValue &v, const std::string &strName)
int ParseSighashString(const UniValue &sighash)
void initialize_parse_univalue()
FUZZ_TARGET_INIT(parse_univalue, initialize_parse_univalue)
std::vector< unsigned char > ParseHexV(const UniValue &v, std::string strName)
std::pair< int64_t, int64_t > ParseDescriptorRange(const UniValue &value)
Parse a JSON range specified as int64, or [int64, int64].
std::vector< CScript > EvalDescriptorStringOrObject(const UniValue &scanobject, FlatSigningProvider &provider)
Evaluate a descriptor given as a string, or as a {"desc":...,"range":...} object, with default range ...
std::vector< unsigned char > ParseHexO(const UniValue &o, std::string strKey)
uint256 ParseHashO(const UniValue &o, std::string strKey)
uint256 ParseHashV(const UniValue &v, std::string strName)
Utilities: convert hex-encoded Values (throws error if not hex).
unsigned int ParseConfirmTarget(const UniValue &value, unsigned int max_target)
Parse a confirm target option and raise an RPC error if it is invalid.
const UniValue NullUniValue