From 93e50dab3c982e1408111a4ed165ac8a7637bcd9 Mon Sep 17 00:00:00 2001 From: Jason Dreyzehner Date: Wed, 18 Jan 2017 19:10:35 -0500 Subject: [PATCH] spvnode: fix incorrect function call. --- lib/node/spvnode.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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; }