diff options
Diffstat (limited to 'src/rpc/util.cpp')
-rw-r--r-- | src/rpc/util.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/rpc/util.cpp b/src/rpc/util.cpp index bac7c722c1..7abf966226 100644 --- a/src/rpc/util.cpp +++ b/src/rpc/util.cpp @@ -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)); } |