Skip to content

Commit

Permalink
Added scriptpubkey field back to listunspent
Browse files Browse the repository at this point in the history
Basically a partial revert of 4035ff1
  • Loading branch information
giaki3003 committed Feb 22, 2019
1 parent e2ded64 commit 599e7fa
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/rpcrawtransaction.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -334,6 +334,7 @@ UniValue listunspent(const UniValue& params, bool fHelp)
entry.push_back(Pair("redeemScript", HexStr(redeemScript.begin(), redeemScript.end())));
}
}
entry.push_back(Pair("scriptPubKey", HexStr(scriptPubKey.begin(), scriptPubKey.end())));
entry.push_back(Pair("amount", ValueFromAmount(out.tx->vout[out.i].nValue)));
entry.push_back(Pair("confirmations", out.nDepth));
entry.push_back(Pair("ds_rounds", pwalletMain->GetInputDarkSendRounds(CTxIn(out.tx->GetHash(), out.i))));
Expand Down

0 comments on commit 599e7fa

Please sign in to comment.