From 5912d65fa8258789c2ad368e3226fff5827f45a9 Mon Sep 17 00:00:00 2001 From: Christopher Jeffrey Date: Sat, 26 Mar 2016 05:06:07 -0700 Subject: [PATCH] fix mempool.countAncestors. --- lib/bcoin/mempool.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/bcoin/mempool.js b/lib/bcoin/mempool.js index 88403141..f6f472ef 100644 --- a/lib/bcoin/mempool.js +++ b/lib/bcoin/mempool.js @@ -574,6 +574,8 @@ Mempool.prototype.countAncestors = function countAncestors(tx, callback) { if (!tx) return next(); + inputs[i] += 1; + self.countAncestors(tx, function(err, max) { if (err) return next(err);