From 08a1ae9fab781cc96131ee4e035dead36c37ef49 Mon Sep 17 00:00:00 2001 From: Larry Ren Date: Wed, 19 Nov 2014 21:23:24 +0000 Subject: [PATCH] Fix confirmation info for multiple spent attempts Use the correct property when going over multiple spent attempts. --- lib/BlockDb.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/BlockDb.js b/lib/BlockDb.js index c83761a..b229f14 100644 --- a/lib/BlockDb.js +++ b/lib/BlockDb.js @@ -329,10 +329,10 @@ BlockDb.prototype._fillConfirmationsOneSpent = function(o, chainHeight, cb) { async.eachLimit(o.multipleSpentAttempts, CONCURRENCY, function(oi, e_c) { // Only one will be confirmed - self.getBlockForTx(oi.spentTxId, function(err, hash, height) { + self.getBlockForTx(oi.txid, function(err, hash, height) { if (err) return; if (height>=0) { - o.spentTxId = oi.spentTxId; + o.spentTxId = oi.txid; o.index = oi.index; o.spentIsConfirmed = chainHeight >= height; o.spentConfirmations = chainHeight - height +1;