From 26f6185097acaa61b3f5bd0345b5dccc02629798 Mon Sep 17 00:00:00 2001 From: Christopher Jeffrey Date: Sat, 21 Jan 2017 03:48:57 -0800 Subject: [PATCH] spvnode: fix events. --- lib/node/spvnode.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/node/spvnode.js b/lib/node/spvnode.js index a896ad13..f66a4e45 100644 --- a/lib/node/spvnode.js +++ b/lib/node/spvnode.js @@ -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) {