bitcoind: fix noTxList caching issue

This commit is contained in:
Braydon Fuller 2016-04-22 16:13:57 -04:00
parent 5e6600162a
commit c6e543c2a1
1 changed files with 5 additions and 2 deletions

View File

@ -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);
});
}