aboutsummaryrefslogtreecommitdiff
path: root/src/rpc/util.cpp
diff options
context:
space:
mode:
authorFabian Jahr <fjahr@protonmail.com>2020-06-02 23:56:28 +0200
committerFabian Jahr <fjahr@protonmail.com>2020-06-22 01:55:36 +0200
commitf17a4d1c4ddce6935a353004898fb4e8618a213e (patch)
treeac02ebbe6cb4014da200bf3e466efd74468c521c /src/rpc/util.cpp
parenta712cf6f6801157667fcf36d1c498b6fff6d328a (diff)
downloadbitcoin-f17a4d1c4ddce6935a353004898fb4e8618a213e.tar.xz
rpc: Add hash_type NONE to gettxoutsetinfo
Diffstat (limited to 'src/rpc/util.cpp')
-rw-r--r--src/rpc/util.cpp2
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));
}