diff --git a/lib/bcoin/pool.js b/lib/bcoin/pool.js index aaa57035..0aea4a6e 100644 --- a/lib/bcoin/pool.js +++ b/lib/bcoin/pool.js @@ -1612,18 +1612,19 @@ Pool.prototype.getData = function getData(peer, type, hash, options, callback) { return callback(); } - if (!options.force) { - if (type === this.tx.type) { - if (!this.mempool) - return utils.asyncify(done)(null, false); - return this.mempool.hasAny(hash, done); - } - return this.chain.has(hash, done); + if (options.force) { + return utils.nextTick(function() { + return done(null, false); + }); } - return utils.nextTick(function() { - return done(null, false); - }); + if (type === this.tx.type) { + if (!this.mempool) + return utils.asyncify(done)(null, false); + return this.mempool.hasAny(hash, done); + } + + return this.chain.has(hash, done); }; /**