mempool: minor.
This commit is contained in:
parent
e5fd8305bf
commit
23ca2cc65f
@ -214,16 +214,16 @@ Mempool.prototype._addBlock = co(function* addBlock(block, txs) {
|
|||||||
entries.push(entry);
|
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) {
|
if (this.fees) {
|
||||||
this.fees.processBlock(block.height, entries, this.chain.synced);
|
this.fees.processBlock(block.height, entries, this.chain.synced);
|
||||||
// Note: disable for now.
|
// Note: disable for now.
|
||||||
// this.cache.writeFees(this.fees);
|
// 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);
|
this.cache.sync(block.hash);
|
||||||
|
|
||||||
yield this.cache.flush();
|
yield this.cache.flush();
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user