aboutsummaryrefslogtreecommitdiff
path: root/src/bitcoin-tx.cpp
diff options
context:
space:
mode:
authorBen Woosley <[email protected]>2018-06-08 04:12:36 -0700
committerBen Woosley <[email protected]>2018-06-08 10:53:38 -0700
commitabd2678ac1af10f55b8b29507407c9e286e06f09 (patch)
tree69d7ed1a50106d82cb30095a8d5cdfb89e708d25 /src/bitcoin-tx.cpp
parentMerge #13374: utils and libraries: checking for bitcoin address in translations (diff)
downloaddiscoin-abd2678ac1af10f55b8b29507407c9e286e06f09.tar.xz
discoin-abd2678ac1af10f55b8b29507407c9e286e06f09.zip
Drop ParseHashUV in favor of calling ParseHashStr
The one existing call already validates get_str will pass via checkObject.
Diffstat (limited to 'src/bitcoin-tx.cpp')
-rw-r--r--src/bitcoin-tx.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/bitcoin-tx.cpp b/src/bitcoin-tx.cpp
index 2a594c305..e6eb723cf 100644
--- a/src/bitcoin-tx.cpp
+++ b/src/bitcoin-tx.cpp
@@ -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)