From 171207b4772d76b02dda81fe85bf9b0c51102ba1 Mon Sep 17 00:00:00 2001 From: Christopher Jeffrey Date: Tue, 9 Dec 2014 14:19:44 -0800 Subject: [PATCH] use get_tx for resolving prev_outs. --- src/bitcoindjs.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/bitcoindjs.cc b/src/bitcoindjs.cc index f62cbc90..866709ec 100644 --- a/src/bitcoindjs.cc +++ b/src/bitcoindjs.cc @@ -5897,8 +5897,8 @@ ctx_to_jstx(const CTransaction& ctx, uint256 blockhash, Local jstx) { Local jsprev = NanNew(); 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);