mempool: return missing txs again.

This commit is contained in:
Christopher Jeffrey 2017-02-28 13:15:37 -08:00
parent ce45b501da
commit 7bfe5cfd08
No known key found for this signature in database
GPG Key ID: 8962AB9DE6666BBD

View File

@ -666,10 +666,10 @@ Mempool.prototype.addTX = co(function* addTX(tx) {
*/
Mempool.prototype._addTX = co(function* _addTX(tx) {
var result;
var missing;
try {
result = yield this.insertTX(tx);
missing = yield this.insertTX(tx);
} catch (err) {
if (err.type === 'VerifyError') {
if (!tx.hasWitness() && !err.malleated)
@ -682,6 +682,8 @@ Mempool.prototype._addTX = co(function* _addTX(tx) {
yield this.cache.flush();
this.lastUpdate = util.now();
}
return missing;
});
/**