diff --git a/lib/node/spvnode.js b/lib/node/spvnode.js index 498e5328..139e5aa1 100644 --- a/lib/node/spvnode.js +++ b/lib/node/spvnode.js @@ -126,7 +126,7 @@ util.inherits(SPVNode, Node); SPVNode.prototype._init = function _init() { var self = this; - var onError = this._error.bind(this); + var onError = this.error.bind(this); // Bind to errors this.chain.on('error', onError); @@ -156,7 +156,7 @@ SPVNode.prototype._init = function _init() { try { yield self.watchBlock(entry, block); } catch (e) { - self._error(e); + self.error(e); } return; }