bitcoind: fix noTxList caching issue
This commit is contained in:
parent
5e6600162a
commit
c6e543c2a1
@ -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);
|
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user