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]);