mempool. static int.
This commit is contained in:
parent
7e2185dfd6
commit
aba92e4a7f
@ -1066,9 +1066,6 @@ Mempool.prototype.verify = function verify(entry, callback) {
|
|||||||
if (self.limitFree && modFee < minRelayFee) {
|
if (self.limitFree && modFee < minRelayFee) {
|
||||||
now = utils.now();
|
now = utils.now();
|
||||||
|
|
||||||
if (!self.lastTime)
|
|
||||||
self.lastTime = now;
|
|
||||||
|
|
||||||
// Use an exponentially decaying ~10-minute window:
|
// Use an exponentially decaying ~10-minute window:
|
||||||
self.freeCount *= Math.pow(1 - 1 / 600, now - self.lastTime);
|
self.freeCount *= Math.pow(1 - 1 / 600, now - self.lastTime);
|
||||||
self.lastTime = now;
|
self.lastTime = now;
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user