From 384d06c1963a2b69968bb7e9da48d075387cbeaa Mon Sep 17 00:00:00 2001 From: Braydon Fuller Date: Tue, 20 Sep 2016 14:48:52 -0400 Subject: [PATCH] Fix reference to node --- lib/services/bitcoind.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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); });