spvnode: fix events.

This commit is contained in:
Christopher Jeffrey 2017-01-21 03:48:57 -08:00
parent 4692849593
commit 26f6185097
No known key found for this signature in database
GPG Key ID: 8962AB9DE6666BBD

View File

@ -135,11 +135,11 @@ SPVNode.prototype._init = function _init() {
if (this.http)
this.http.on('error', onError);
this.pool.on('tx', function(tx) {
this.pool.on('tx', function(packet) {
if (self.rescanJob)
return;
self.emit('tx', tx);
self.emit('tx', packet.tx);
});
this.chain.on('block', function(block) {