MCPcopy Create free account
hub / github.com/ElementsProject/elements / ParseConfirmTarget

Function ParseConfirmTarget

src/rpc/util.cpp:353–361  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

351}
352
353unsigned int ParseConfirmTarget(const UniValue& value, unsigned int max_target)
354{
355 const int target{value.get_int()};
356 const unsigned int unsigned_target{static_cast<unsigned int>(target)};
357 if (target < 1 || unsigned_target > max_target) {
358 throw JSONRPCError(RPC_INVALID_PARAMETER, strprintf("Invalid conf_target, must be between %u and %u", 1, max_target));
359 }
360 return unsigned_target;
361}
362
363RPCErrorCode RPCErrorFromTransactionError(TransactionError terr)
364{

Callers 4

SetFeeEstimateModeFunction · 0.85
FUZZ_TARGET_INITFunction · 0.85
estimatesmartfeeFunction · 0.85
estimaterawfeeFunction · 0.85

Calls 2

JSONRPCErrorFunction · 0.85
get_intMethod · 0.80

Tested by 1

FUZZ_TARGET_INITFunction · 0.68