Merge pull request #117 from bitjson/master

spvnode: fix incorrect function call.
This commit is contained in:
Christopher Jeffrey (JJ) 2017-01-18 16:56:12 -08:00 committed by GitHub
commit b80064320b

View File

@ -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;
}