Skip to content

Commit

Permalink
bitcoin-tx: Fix JSON validation of prevtxs
Browse files Browse the repository at this point in the history
  • Loading branch information
ers35 committed Dec 23, 2014
1 parent 146e680 commit 2a3d988
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/bitcoin-tx.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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];
Expand Down

0 comments on commit 2a3d988

Please sign in to comment.