From 1d55cd1b7eb5049c8ecb7da294aabb233106df89 Mon Sep 17 00:00:00 2001 From: Christopher Jeffrey Date: Thu, 25 Aug 2016 02:52:02 -0700 Subject: [PATCH] fullnode: less spam. --- lib/node/fullnode.js | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/lib/node/fullnode.js b/lib/node/fullnode.js index 2f8583c5..aba55f10 100644 --- a/lib/node/fullnode.js +++ b/lib/node/fullnode.js @@ -179,9 +179,13 @@ Fullnode.prototype._init = function _init() { }); this.pool.on('error', function(err) { - if (err.reason === 'insufficient priority') - return self.logger.spam(err.message); - self._error(err); + switch (err.reason) { + case 'insufficient priority': + case 'non-final': + return self.logger.spam(err.message); + default: + return self._error(err); + } }); this.chain.on('error', function(err) {