This commit is contained in:
Christopher Jeffrey 2016-05-06 20:11:57 -07:00
parent 81c8eb5f5b
commit 7e3635bce6
No known key found for this signature in database
GPG Key ID: 8962AB9DE6666BBD

View File

@ -1612,18 +1612,19 @@ Pool.prototype.getData = function getData(peer, type, hash, options, callback) {
return callback(); return callback();
} }
if (!options.force) { if (options.force) {
if (type === this.tx.type) { return utils.nextTick(function() {
if (!this.mempool) return done(null, false);
return utils.asyncify(done)(null, false); });
return this.mempool.hasAny(hash, done);
}
return this.chain.has(hash, done);
} }
return utils.nextTick(function() { if (type === this.tx.type) {
return done(null, false); if (!this.mempool)
}); return utils.asyncify(done)(null, false);
return this.mempool.hasAny(hash, done);
}
return this.chain.has(hash, done);
}; };
/** /**