aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEric R. Schulz <ersmail@gmail.com>2014-12-23 02:59:00 +0000
committerEric R. Schulz <ersmail@gmail.com>2014-12-23 02:59:00 +0000
commita089c50981e822014ffc18e8a37b3518feb52206 (patch)
treeb2ef441714f6e07db4c8b52eed78d50079240d42
parent2a3d988b802dcea4453241e37168d8511078940a (diff)
bitcoin-tx: Refer to the JSON fields rather than the whole object
-rw-r--r--src/bitcoin-tx.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/bitcoin-tx.cpp b/src/bitcoin-tx.cpp
index 56ca600ed4..05a85810ec 100644
--- a/src/bitcoin-tx.cpp
+++ b/src/bitcoin-tx.cpp
@@ -379,13 +379,13 @@ static void MutateTxSign(CMutableTransaction& tx, const string& flagStr)
if (!prevOut.checkObject(types))
throw runtime_error("prevtxs internal object typecheck fail");
- uint256 txid = ParseHashUV(prevOut, "txid");
+ uint256 txid = ParseHashUV(prevOut["txid"], "txid");
int nOut = atoi(prevOut["vout"].getValStr());
if (nOut < 0)
throw runtime_error("vout must be positive");
- vector<unsigned char> pkData(ParseHexUV(prevOut, "scriptPubKey"));
+ vector<unsigned char> pkData(ParseHexUV(prevOut["scriptPubKey"], "scriptPubKey"));
CScript scriptPubKey(pkData.begin(), pkData.end());
{