Do not re-use the function name ParseHashStr
(core_io.h
) for a function with different behaviour in rest.cpp
.
Before:
0src/core_io.h:uint256 ParseHashStr(const std::string&, const std::string& strName);
1src/core_read.cpp:uint256 ParseHashStr(const std::string& strHex, const std::string& strName)
2src/rest.cpp:static bool ParseHashStr(const std::string& strReq, uint256& v)
After:
0src/core_io.h:uint256 ParseHashStr(const std::string&, const std::string& strName);
1src/core_read.cpp:uint256 ParseHashStr(const std::string& strHex, const std::string& strName)