Skip to content

Commit

Permalink
scriptPubkey not sending issue fixed
Browse files Browse the repository at this point in the history
(cherry picked from commit 949288f)
(cherry picked from commit 6a756b9)
  • Loading branch information
ssdbkey authored and 216k155 committed Jul 17, 2018
1 parent 82e663a commit 7cb226b
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 @@ -308,6 +308,7 @@ UniValue listunspent(const UniValue& params, bool fHelp)
}
}

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("spendable", out.fSpendable));
Expand Down

0 comments on commit 7cb226b

Please sign in to comment.