mempool: return missing txs again.
This commit is contained in:
parent
ce45b501da
commit
7bfe5cfd08
@ -666,10 +666,10 @@ Mempool.prototype.addTX = co(function* addTX(tx) {
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
Mempool.prototype._addTX = co(function* _addTX(tx) {
|
Mempool.prototype._addTX = co(function* _addTX(tx) {
|
||||||
var result;
|
var missing;
|
||||||
|
|
||||||
try {
|
try {
|
||||||
result = yield this.insertTX(tx);
|
missing = yield this.insertTX(tx);
|
||||||
} catch (err) {
|
} catch (err) {
|
||||||
if (err.type === 'VerifyError') {
|
if (err.type === 'VerifyError') {
|
||||||
if (!tx.hasWitness() && !err.malleated)
|
if (!tx.hasWitness() && !err.malleated)
|
||||||
@ -682,6 +682,8 @@ Mempool.prototype._addTX = co(function* _addTX(tx) {
|
|||||||
yield this.cache.flush();
|
yield this.cache.flush();
|
||||||
this.lastUpdate = util.now();
|
this.lastUpdate = util.now();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
return missing;
|
||||||
});
|
});
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user