diff --git a/lib/services/bitcoind.js b/lib/services/bitcoind.js index 1b99344a..6316573b 100644 --- a/lib/services/bitcoind.js +++ b/lib/services/bitcoind.js @@ -718,7 +718,6 @@ Bitcoin.prototype._subscribeZmqEvents = function(node) { }; Bitcoin.prototype._initZmqSubSocket = function(node, zmqUrl) { - var self = this; node.zmqSubSocket = zmq.socket('sub'); node.zmqSubSocket.on('connect', function(fd, endPoint) { @@ -736,7 +735,7 @@ Bitcoin.prototype._initZmqSubSocket = function(node, zmqUrl) { node.zmqSubSocket.on('monitor_error', function(err) { log.error('Error in monitoring: %s, will restart monitoring in 5 seconds', err); setTimeout(function() { - self.zmqSubSocket.monitor(500, 0); + node.zmqSubSocket.monitor(500, 0); }, 5000); });