spvnode: fix incorrect function call.
This commit is contained in:
parent
7f0acd5103
commit
93e50dab3c
@ -126,7 +126,7 @@ util.inherits(SPVNode, Node);
|
|||||||
|
|
||||||
SPVNode.prototype._init = function _init() {
|
SPVNode.prototype._init = function _init() {
|
||||||
var self = this;
|
var self = this;
|
||||||
var onError = this._error.bind(this);
|
var onError = this.error.bind(this);
|
||||||
|
|
||||||
// Bind to errors
|
// Bind to errors
|
||||||
this.chain.on('error', onError);
|
this.chain.on('error', onError);
|
||||||
@ -156,7 +156,7 @@ SPVNode.prototype._init = function _init() {
|
|||||||
try {
|
try {
|
||||||
yield self.watchBlock(entry, block);
|
yield self.watchBlock(entry, block);
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
self._error(e);
|
self.error(e);
|
||||||
}
|
}
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user