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

Function ParseFeeRate

src/rpc/util.cpp:110–115  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

108}
109
110CFeeRate ParseFeeRate(const UniValue& json)
111{
112 CAmount val{AmountFromValue(json)};
113 if (val >= COIN) throw JSONRPCError(RPC_INVALID_PARAMETER, "Fee rates larger than or equal to 1BTC/kvB are not accepted");
114 return CFeeRate{val};
115}
116
117uint256 ParseHashV(const UniValue& v, std::string_view name)
118{

Callers 3

sendrawtransactionFunction · 0.85
testmempoolacceptFunction · 0.85
submitpackageFunction · 0.85

Calls 2

JSONRPCErrorFunction · 0.85
AmountFromValueFunction · 0.70

Tested by

no test coverage detected