bitcoind: fix noTxList caching issue

This commit is contained in:
Braydon Fuller 2016-04-22 16:13:57 -04:00
parent 5e6600162a
commit c6e543c2a1

View File

@ -1247,9 +1247,12 @@ Bitcoin.prototype.getAddressSummary = function(addressArg, options, callback) {
self.summaryCache.set(cacheKey, summary); self.summaryCache.set(cacheKey, summary);
if (!options.noTxList) { if (!options.noTxList) {
var allTxids = mempoolTxids.reverse().concat(summaryTxids); var allTxids = mempoolTxids.reverse().concat(summaryTxids);
summary.txids = allTxids; var allSummary = _.clone(summary);
allSummary.txids = allTxids;
callback(null, allSummary);
} else {
callback(null, summary);
} }
callback(null, summary);
}); });
} }