5#include <chainparams.h>
21 const std::string random_string(buffer.begin(), buffer.end());
25 if (!uv.
read(random_string)) valid =
false;
34 }
catch (
const std::runtime_error&) {
39 }
catch (
const std::runtime_error&) {
44 }
catch (
const std::runtime_error&) {
49 }
catch (
const std::runtime_error&) {
62 }
catch (
const std::runtime_error&) {
67 }
catch (
const std::runtime_error&) {
76 }
catch (
const std::runtime_error&) {
82 }
catch (
const std::runtime_error&) {
87 }
catch (
const std::runtime_error&) {
92 }
catch (
const std::runtime_error&) {
static CAmount AmountFromValue(const UniValue &value)
void SelectParams(const ChainType chain)
Sets the params returned by Params() to those for the given chain type.
bool read(std::string_view raw)
void initialize_parse_univalue()
FUZZ_TARGET(parse_univalue,.init=initialize_parse_univalue)
std::vector< CScript > EvalDescriptorStringOrObject(const UniValue &scanobject, FlatSigningProvider &provider, const bool expand_priv)
Evaluate a descriptor given as a string, or as a {"desc":...,"range":...} object, with default range ...
std::pair< int64_t, int64_t > ParseDescriptorRange(const UniValue &value)
Parse a JSON range specified as int64, or [int64, int64].
std::vector< unsigned char > ParseHexV(const UniValue &v, std::string_view name)
int ParseSighashString(const UniValue &sighash)
Returns a sighash value corresponding to the passed in argument.
std::vector< unsigned char > ParseHexO(const UniValue &o, std::string_view strKey)
uint256 ParseHashO(const UniValue &o, std::string_view strKey)
unsigned int ParseConfirmTarget(const UniValue &value, unsigned int max_target)
Parse a confirm target option and raise an RPC error if it is invalid.
uint256 ParseHashV(const UniValue &v, std::string_view name)
Utilities: convert hex-encoded Values (throws error if not hex).