use get_tx for resolving prev_outs.

This commit is contained in:
Christopher Jeffrey 2014-12-09 14:19:44 -08:00
parent 83e2c05be7
commit 171207b477
1 changed files with 2 additions and 2 deletions

View File

@ -5897,8 +5897,8 @@ ctx_to_jstx(const CTransaction& ctx, uint256 blockhash, Local<Object> jstx) {
Local<Object> jsprev = NanNew<Object>();
CTransaction prev_tx;
//if (get_tx(txin.prevout.hash, blockhash, prev_tx)) {
if (GetTransaction(txin.prevout.hash, prev_tx, blockhash, true)) {
if (get_tx(txin.prevout.hash, blockhash, prev_tx)) {
//if (GetTransaction(txin.prevout.hash, prev_tx, blockhash, true)) {
CTxDestination from;
CTxOut prev_out = prev_tx.vout[txin.prevout.n];
ExtractDestination(prev_out.scriptPubKey, from);