From effda109019638cabba274c1eb905aae888aa88e Mon Sep 17 00:00:00 2001 From: Christopher Jeffrey Date: Mon, 27 Oct 2014 14:55:48 -0700 Subject: [PATCH] emit parsed properly. --- lib/bitcoind.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/lib/bitcoind.js b/lib/bitcoind.js index 7f882264..b4937bdc 100644 --- a/lib/bitcoind.js +++ b/lib/bitcoind.js @@ -192,7 +192,10 @@ Bitcoin.prototype.start = function(options, callback) { } self.emit(packet.name, packet); - self.emit('parsed', packet); + self.emit('parsed', + packet.addresses + || packet.block + || packet.tx); }); }); }, 50);