From 6dcbb93802d72a708d4300bd307249ebe7458a42 Mon Sep 17 00:00:00 2001 From: Christopher Jeffrey Date: Tue, 28 Feb 2017 13:21:53 -0800 Subject: [PATCH] mempool: minor. --- lib/mempool/mempool.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/mempool/mempool.js b/lib/mempool/mempool.js index 17567770..2e52c124 100644 --- a/lib/mempool/mempool.js +++ b/lib/mempool/mempool.js @@ -83,7 +83,7 @@ function Mempool(options) { this.totalTX = 0; this.freeCount = 0; this.lastTime = 0; - this.lastUpdate = 0; + this.lastFlush = 0; this.waiting = {}; this.orphans = {}; @@ -678,9 +678,9 @@ Mempool.prototype._addTX = co(function* _addTX(tx) { throw err; } - if (util.now() - this.lastUpdate > 10) { + if (util.now() - this.lastFlush > 10) { yield this.cache.flush(); - this.lastUpdate = util.now(); + this.lastFlush = util.now(); } return missing;