From b041d3ae99f4d481398a61ecd8affaed12d20694 Mon Sep 17 00:00:00 2001 From: Christopher Jeffrey Date: Sun, 18 May 2014 03:01:25 -0500 Subject: [PATCH] chain: misc fixes. Signed-off-by: Fedor Indutny --- lib/bcoin/chain.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/bcoin/chain.js b/lib/bcoin/chain.js index fdfb6f75..4906f5cd 100644 --- a/lib/bcoin/chain.js +++ b/lib/bcoin/chain.js @@ -279,7 +279,7 @@ Chain.prototype.has = function has(hash, noProbe, cb) { } if (this.loading) { this.once('load', function() { - this.has(hash, cb); + this.has(hash, noProbe, cb); }); return; } @@ -297,7 +297,7 @@ Chain.prototype.has = function has(hash, noProbe, cb) { if (!noProbe && this.index.bloom.test(hash, 'hex')) { // XXX find hash - return true; + return cb(true); } return cb(!!this.orphan.map[hash]);