diff --git a/lib/bcoin/chain.js b/lib/bcoin/chain.js index dacdcbe9..dca86ee8 100644 --- a/lib/bcoin/chain.js +++ b/lib/bcoin/chain.js @@ -378,14 +378,12 @@ Chain.prototype.has = function has(hash, noProbe, cb) { } } - if (!noProbe && this.index.bloom.test(hash, 'hex')) { - // XXX find hash - return cb(true); - } - if (this.hasOrphan(hash)) return cb(true); + if (!noProbe && this.hasBlock(hash)) + return cb(true); + return cb(false); };