diff --git a/lib/bcoin/txdb.js b/lib/bcoin/txdb.js index e354aaf2..bb5a6dc3 100644 --- a/lib/bcoin/txdb.js +++ b/lib/bcoin/txdb.js @@ -31,8 +31,6 @@ function TXPool(prefix, db, options) { this.options = options; this.busy = false; this.jobs = []; - - this.setMaxListeners(Number.MAX_SAFE_INTEGER); } utils.inherits(TXPool, EventEmitter); @@ -57,7 +55,7 @@ TXPool.prototype._lock = function _lock(func, args, force) { this.busy = true; return function unlock() { - var item, block; + var item; assert(!called); called = true;