diff --git a/subproviders/filters.js b/subproviders/filters.js index 0ce01da6..88f818e2 100644 --- a/subproviders/filters.js +++ b/subproviders/filters.js @@ -26,6 +26,7 @@ function FilterSubprovider(opts) { self.asyncBlockHandlers = {} self.asyncPendingBlockHandlers = {} self._ready = new Stoplight() + self._ready.setMaxListeners(opts.maxFilters || 25) self._ready.go() self.pendingBlockTimeout = opts.pendingBlockTimeout || 4000 self.checkForPendingBlocksActive = false