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&) {
80 if (buffer.size() < 10
'000) (void)EvalDescriptorStringOrObject(univalue, provider); 81 } catch (const UniValue&) { 82 } catch (const std::runtime_error&) { 85 (void)ParseConfirmTarget(univalue, std::numeric_limits<unsigned int>::max()); 86 } catch (const UniValue&) { 87 } catch (const std::runtime_error&) { 90 (void)ParseDescriptorRange(univalue); 91 } catch (const UniValue&) { 92 } catch (const std::runtime_error&) { FUZZ_TARGET(parse_univalue,.init=initialize_parse_univalue)
uint256 ParseHashO(const UniValue &o, std::string_view strKey)
bool read(std::string_view raw)
int ParseSighashString(const UniValue &sighash)
Returns a sighash value corresponding to the passed in argument.
static CAmount AmountFromValue(const UniValue &value)
std::vector< unsigned char > ParseHexO(const UniValue &o, std::string_view strKey)
uint256 ParseHashV(const UniValue &v, std::string_view name)
Utilities: convert hex-encoded Values (throws error if not hex).
void initialize_parse_univalue()
void SelectParams(const ChainType chain)
Sets the params returned by Params() to those for the given chain type.
std::vector< unsigned char > ParseHexV(const UniValue &v, std::string_view name)