Merge pull request #1552 from isocolsky/bug/insight
Removed subscription to 'inv' events
This commit is contained in:
commit
a3377a5579
1 changed files with 1 additions and 2 deletions
|
|
@ -59,7 +59,6 @@ Insight.prototype.subscribeToBlocks = function() {
|
||||||
if (this.listeningBlocks || !socket.connected) return;
|
if (this.listeningBlocks || !socket.connected) return;
|
||||||
|
|
||||||
var self = this;
|
var self = this;
|
||||||
socket.emit('subscribe', 'inv');
|
|
||||||
socket.on('block', function(blockHash) {
|
socket.on('block', function(blockHash) {
|
||||||
self.emit('block', blockHash);
|
self.emit('block', blockHash);
|
||||||
});
|
});
|
||||||
|
|
@ -198,7 +197,7 @@ Insight.prototype.broadcast = function(rawtx, cb) {
|
||||||
rawtx: rawtx
|
rawtx: rawtx
|
||||||
}, function(err, res, body) {
|
}, function(err, res, body) {
|
||||||
if (err || res.status != 200) cb(err || res);
|
if (err || res.status != 200) cb(err || res);
|
||||||
cb(null, body ? body.txid: null);
|
cb(null, body ? body.txid : null);
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue