diff --git a/lib/mempool/mempool.js b/lib/mempool/mempool.js index 5162ec91..221fd82f 100644 --- a/lib/mempool/mempool.js +++ b/lib/mempool/mempool.js @@ -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();