spvnode: fix events.
This commit is contained in:
parent
4692849593
commit
26f6185097
@ -135,11 +135,11 @@ SPVNode.prototype._init = function _init() {
|
|||||||
if (this.http)
|
if (this.http)
|
||||||
this.http.on('error', onError);
|
this.http.on('error', onError);
|
||||||
|
|
||||||
this.pool.on('tx', function(tx) {
|
this.pool.on('tx', function(packet) {
|
||||||
if (self.rescanJob)
|
if (self.rescanJob)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
self.emit('tx', tx);
|
self.emit('tx', packet.tx);
|
||||||
});
|
});
|
||||||
|
|
||||||
this.chain.on('block', function(block) {
|
this.chain.on('block', function(block) {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user