| 108 | } |
| 109 | |
| 110 | CFeeRate 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 | |
| 117 | uint256 ParseHashV(const UniValue& v, std::string_view name) |
| 118 | { |
no test coverage detected