diff options
author | Fabian Jahr <fjahr@protonmail.com> | 2020-06-02 23:52:34 +0200 |
---|---|---|
committer | Fabian Jahr <fjahr@protonmail.com> | 2020-06-22 00:55:44 +0200 |
commit | a712cf6f6801157667fcf36d1c498b6fff6d328a (patch) | |
tree | 1ac2dbe3f86e8d04b271fa0c187f522cf963c110 /src/rpc/util.h | |
parent | 605884ef21318fc3f326dbdf4901cb353ba63fab (diff) |
rpc: gettxoutsetinfo can specify hash_type (only legacy option for now)
Diffstat (limited to 'src/rpc/util.h')
-rw-r--r-- | src/rpc/util.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/rpc/util.h b/src/rpc/util.h index 53dce2c397..96dd1ea74a 100644 --- a/src/rpc/util.h +++ b/src/rpc/util.h @@ -5,6 +5,7 @@ #ifndef BITCOIN_RPC_UTIL_H #define BITCOIN_RPC_UTIL_H +#include <node/coinstats.h> #include <node/transaction.h> #include <outputtype.h> #include <protocol.h> @@ -77,6 +78,8 @@ extern uint256 ParseHashO(const UniValue& o, std::string strKey); extern std::vector<unsigned char> ParseHexV(const UniValue& v, std::string strName); extern std::vector<unsigned char> ParseHexO(const UniValue& o, std::string strKey); +CoinStatsHashType ParseHashType(const UniValue& param, const CoinStatsHashType default_type); + extern CAmount AmountFromValue(const UniValue& value); extern std::string HelpExampleCli(const std::string& methodname, const std::string& args); extern std::string HelpExampleRpc(const std::string& methodname, const std::string& args); |