Drop ParseHashUV in favor of calling ParseHashStr

The one existing call already validates get_str will
pass via checkObject.
This commit is contained in:
Ben Woosley
2018-06-08 04:12:36 -07:00
parent 56f69360dc
commit abd2678ac1
3 changed files with 1 additions and 10 deletions

View File

@@ -591,7 +591,7 @@ static void MutateTxSign(CMutableTransaction& tx, const std::string& flagStr)
if (!prevOut.checkObject(types))
throw std::runtime_error("prevtxs internal object typecheck fail");
uint256 txid = ParseHashUV(prevOut["txid"], "txid");
uint256 txid = ParseHashStr(prevOut["txid"].get_str(), "txid");
int nOut = atoi(prevOut["vout"].getValStr());
if (nOut < 0)