aboutsummaryrefslogtreecommitdiff
path: root/src/core_read.cpp
diff options
context:
space:
mode:
authorBen Woosley <ben.woosley@gmail.com>2018-06-08 04:12:36 -0700
committerBen Woosley <ben.woosley@gmail.com>2018-06-08 10:53:38 -0700
commitabd2678ac1af10f55b8b29507407c9e286e06f09 (patch)
tree69d7ed1a50106d82cb30095a8d5cdfb89e708d25 /src/core_read.cpp
parent56f69360dc98bd68704f19646a84d045788d199e (diff)
downloadbitcoin-abd2678ac1af10f55b8b29507407c9e286e06f09.tar.xz
Drop ParseHashUV in favor of calling ParseHashStr
The one existing call already validates get_str will pass via checkObject.
Diffstat (limited to 'src/core_read.cpp')
-rw-r--r--src/core_read.cpp8
1 files changed, 0 insertions, 8 deletions
diff --git a/src/core_read.cpp b/src/core_read.cpp
index aade7e21ca..4d851610ef 100644
--- a/src/core_read.cpp
+++ b/src/core_read.cpp
@@ -160,14 +160,6 @@ bool DecodeHexBlk(CBlock& block, const std::string& strHexBlk)
return true;
}
-uint256 ParseHashUV(const UniValue& v, const std::string& strName)
-{
- std::string strHex;
- if (v.isStr())
- strHex = v.getValStr();
- return ParseHashStr(strHex, strName); // Note: ParseHashStr("") throws a runtime_error
-}
-
uint256 ParseHashStr(const std::string& strHex, const std::string& strName)
{
if (!IsHex(strHex)) // Note: IsHex("") is false