fullnode: less spam.

This commit is contained in:
Christopher Jeffrey 2016-08-25 02:52:02 -07:00
parent ec8e3e0359
commit 1d55cd1b7e
No known key found for this signature in database
GPG Key ID: 8962AB9DE6666BBD

View File

@ -179,9 +179,13 @@ Fullnode.prototype._init = function _init() {
}); });
this.pool.on('error', function(err) { this.pool.on('error', function(err) {
if (err.reason === 'insufficient priority') switch (err.reason) {
return self.logger.spam(err.message); case 'insufficient priority':
self._error(err); case 'non-final':
return self.logger.spam(err.message);
default:
return self._error(err);
}
}); });
this.chain.on('error', function(err) { this.chain.on('error', function(err) {