mempool: minor.

This commit is contained in:
Christopher Jeffrey 2017-03-01 09:23:21 -08:00
parent e5fd8305bf
commit 23ca2cc65f
No known key found for this signature in database
GPG Key ID: 8962AB9DE6666BBD

View File

@ -214,16 +214,16 @@ Mempool.prototype._addBlock = co(function* addBlock(block, txs) {
entries.push(entry);
}
// We need to reset the rejects filter periodically.
// There may be a locktime in a TX that is now valid.
this.rejects.reset();
if (this.fees) {
this.fees.processBlock(block.height, entries, this.chain.synced);
// Note: disable for now.
// this.cache.writeFees(this.fees);
}
// We need to reset the rejects filter periodically.
// There may be a locktime in a TX that is now valid.
this.rejects.reset();
this.cache.sync(block.hash);
yield this.cache.flush();