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();
}
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);
};
/**