MCPcopy Create free account
hub / github.com/bitcoin/bitcoin / ParseConfirmTarget

Function ParseConfirmTarget

src/rpc/util.cpp:369–377  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

367}
368
369unsigned int ParseConfirmTarget(const UniValue& value, unsigned int max_target)
370{
371 const int target{value.getInt<int>()};
372 const unsigned int unsigned_target{static_cast<unsigned int>(target)};
373 if (target < 1 || unsigned_target > max_target) {
374 throw JSONRPCError(RPC_INVALID_PARAMETER, strprintf("Invalid conf_target, must be between %u and %u", 1, max_target));
375 }
376 return unsigned_target;
377}
378
379RPCErrorCode RPCErrorFromPSBTError(PSBTError err)
380{

Callers 4

SetFeeEstimateModeFunction · 0.85
parse_univalue.cppFile · 0.85
estimatesmartfeeFunction · 0.85
estimaterawfeeFunction · 0.85

Calls 1

JSONRPCErrorFunction · 0.85

Tested by

no test coverage detected