spvnode: fix incorrect function call.

This commit is contained in:
Jason Dreyzehner 2017-01-18 19:10:35 -05:00
parent 7f0acd5103
commit 93e50dab3c
No known key found for this signature in database
GPG Key ID: 72CB61DC4738E01B

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