From c6e543c2a181a0d34cb1c036da66678429993f22 Mon Sep 17 00:00:00 2001 From: Braydon Fuller Date: Fri, 22 Apr 2016 16:13:57 -0400 Subject: [PATCH] bitcoind: fix noTxList caching issue --- lib/services/bitcoind.js | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/lib/services/bitcoind.js b/lib/services/bitcoind.js index bc45a1b8..b72e2345 100644 --- a/lib/services/bitcoind.js +++ b/lib/services/bitcoind.js @@ -1247,9 +1247,12 @@ Bitcoin.prototype.getAddressSummary = function(addressArg, options, callback) { self.summaryCache.set(cacheKey, summary); if (!options.noTxList) { 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); }); }