aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorEric R. Schulz <ersmail@gmail.com>2014-12-22 21:04:53 -0500
committerEric R. Schulz <ersmail@gmail.com>2014-12-22 21:04:53 -0500
commit2a3d988b802dcea4453241e37168d8511078940a (patch)
tree25b78ab384c22315ec1ca108b8a78598f200976e /src
parent146e68059cf3ce5772a5f0dc93dcc785a7b64bcf (diff)
downloadbitcoin-2a3d988b802dcea4453241e37168d8511078940a.tar.xz
bitcoin-tx: Fix JSON validation of prevtxs
Diffstat (limited to 'src')
-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 337cd44cd9..56ca600ed4 100644
--- a/src/bitcoin-tx.cpp
+++ b/src/bitcoin-tx.cpp
@@ -368,7 +368,7 @@ static void MutateTxSign(CMutableTransaction& tx, const string& flagStr)
// Add previous txouts given in the RPC call:
if (!registers.count("prevtxs"))
throw runtime_error("prevtxs register variable must be set.");
- UniValue prevtxsObj = registers["privatekeys"];
+ UniValue prevtxsObj = registers["prevtxs"];
{
for (unsigned int previdx = 0; previdx < prevtxsObj.count(); previdx++) {
UniValue prevOut = prevtxsObj[previdx];