spvnode: fix incorrect function call.
This commit is contained in:
parent
7f0acd5103
commit
93e50dab3c
1 changed files with 2 additions and 2 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue