rpc: Add hash_type NONE to gettxoutsetinfo

This commit is contained in:
Fabian Jahr
2020-06-02 23:56:28 +02:00
parent a712cf6f68
commit f17a4d1c4d
4 changed files with 21 additions and 2 deletions

View File

@@ -122,6 +122,8 @@ CoinStatsHashType ParseHashType(const UniValue& param, const CoinStatsHashType d
if (hash_type_input == "hash_serialized_2") {
return CoinStatsHashType::HASH_SERIALIZED;
} else if (hash_type_input == "none") {
return CoinStatsHashType::NONE;
} else {
throw JSONRPCError(RPC_INVALID_PARAMETER, strprintf("%d is not a valid hash_type", hash_type_input));
}