minor.
This commit is contained in:
parent
81c8eb5f5b
commit
7e3635bce6
@ -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);
|
||||
};
|
||||
|
||||
/**
|
||||
|
||||
Loading…
Reference in New Issue
Block a user