| 1289 | } |
| 1290 | |
| 1291 | CoinStatsHashType ParseHashType(const std::string& hash_type_input) |
| 1292 | { |
| 1293 | if (hash_type_input == "hash_serialized_2") { |
| 1294 | return CoinStatsHashType::HASH_SERIALIZED; |
| 1295 | } else if (hash_type_input == "muhash") { |
| 1296 | return CoinStatsHashType::MUHASH; |
| 1297 | } else if (hash_type_input == "none") { |
| 1298 | return CoinStatsHashType::NONE; |
| 1299 | } else { |
| 1300 | throw JSONRPCError(RPC_INVALID_PARAMETER, strprintf("'%s' is not a valid hash_type", hash_type_input)); |
| 1301 | } |
| 1302 | } |
| 1303 | |
| 1304 | static RPCHelpMan gettxoutsetinfo() |
| 1305 | { |
no test coverage detected