From 7173230d1a534981f40cdab33fc89d9b9f7ce051 Mon Sep 17 00:00:00 2001 From: Ivan Socolsky Date: Tue, 7 Oct 2014 15:46:05 -0300 Subject: [PATCH] Removed subscription to 'inv' events --- js/models/Insight.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/js/models/Insight.js b/js/models/Insight.js index 10d0e3f8c..30e2d0e7d 100644 --- a/js/models/Insight.js +++ b/js/models/Insight.js @@ -59,7 +59,6 @@ Insight.prototype.subscribeToBlocks = function() { if (this.listeningBlocks || !socket.connected) return; var self = this; - socket.emit('subscribe', 'inv'); socket.on('block', function(blockHash) { self.emit('block', blockHash); }); @@ -198,7 +197,7 @@ Insight.prototype.broadcast = function(rawtx, cb) { rawtx: rawtx }, function(err, res, body) { if (err || res.status != 200) cb(err || res); - cb(null, body ? body.txid: null); + cb(null, body ? body.txid : null); }); };