aboutsummaryrefslogtreecommitdiff
path: root/src/core_read.cpp
diff options
context:
space:
mode:
authorMarcoFalke <*~=`'#}+{/-|&$^_@721217.xyz>2024-07-18 22:54:38 +0200
committerMarcoFalke <*~=`'#}+{/-|&$^_@721217.xyz>2024-07-24 17:40:18 +0200
commitfa7b57e5f5a6dafbbadc361ffd27b58afff1ed59 (patch)
tree7fed09f6280c0e6cfcbb7bc075a804426c3a785a /src/core_read.cpp
parentfa9077724507faad207f29509a8202fc6ac9d502 (diff)
refactor: Replace ParseHashStr with FromHex
No need to have two functions with different names that achieve the exact same thing.
Diffstat (limited to 'src/core_read.cpp')
-rw-r--r--src/core_read.cpp9
1 files changed, 0 insertions, 9 deletions
diff --git a/src/core_read.cpp b/src/core_read.cpp
index 3e0485eb7b..23f341c230 100644
--- a/src/core_read.cpp
+++ b/src/core_read.cpp
@@ -234,15 +234,6 @@ bool DecodeHexBlk(CBlock& block, const std::string& strHexBlk)
return true;
}
-bool ParseHashStr(const std::string& strHex, uint256& result)
-{
- if ((strHex.size() != 64) || !IsHex(strHex))
- return false;
-
- result.SetHexDeprecated(strHex);
- return true;
-}
-
util::Result<int> SighashFromStr(const std::string& sighash)
{
static const std::map<std::string, int> map_sighash_values = {