diff options
author | Fabian Jahr <fjahr@protonmail.com> | 2020-06-02 23:55:32 +0200 |
---|---|---|
committer | Fabian Jahr <fjahr@protonmail.com> | 2021-01-30 17:38:21 +0100 |
commit | 0d3b2f643d7da3202c0a0e757539208c4aa7c450 (patch) | |
tree | 513418d1567e6c1199b6a8c5a24f526ca22c5e97 /src/rpc/util.cpp | |
parent | 2474645f3b15687e7f196b89eb935d6e6a98a9da (diff) | |
download | bitcoin-0d3b2f643d7da3202c0a0e757539208c4aa7c450.tar.xz |
rpc: Add hash_type MUHASH to gettxoutsetinfo
Also small style fix in rpc/util.cpp
Diffstat (limited to 'src/rpc/util.cpp')
-rw-r--r-- | src/rpc/util.cpp | 17 |
1 files changed, 0 insertions, 17 deletions
diff --git a/src/rpc/util.cpp b/src/rpc/util.cpp index 31072114da..ecfea7017f 100644 --- a/src/rpc/util.cpp +++ b/src/rpc/util.cpp @@ -113,23 +113,6 @@ std::vector<unsigned char> ParseHexO(const UniValue& o, std::string strKey) return ParseHexV(find_value(o, strKey), strKey); } -CoinStatsHashType ParseHashType(const UniValue& param, const CoinStatsHashType default_type) -{ - if (param.isNull()) { - return default_type; - } else { - std::string hash_type_input = param.get_str(); - - 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)); - } - } -} - std::string HelpExampleCli(const std::string& methodname, const std::string& args) { return "> bitcoin-cli " + methodname + " " + args + "\n"; |