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();
|
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);
|
||||||
};
|
};
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user