From 622d7842b668439c2aa2daee43b0563dbd4bfa82 Mon Sep 17 00:00:00 2001 From: Ivan Socolsky Date: Tue, 16 Jun 2015 16:16:43 -0300 Subject: [PATCH] fix init & event redirection --- lib/blockchainmonitor.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/lib/blockchainmonitor.js b/lib/blockchainmonitor.js index 09d7399..60aede1 100644 --- a/lib/blockchainmonitor.js +++ b/lib/blockchainmonitor.js @@ -52,7 +52,7 @@ BlockchainMonitor.prototype.start = function(opts, cb) { }, function(done) { self.messageBroker = opts.messageBroker || new MessageBroker(opts.messageBrokerOpts); - self.messageBroker.onMessage(_.bind(self.sendEmail, self)); + self.messageBroker.onMessage(_.bind(self._handleIncommingTx, self)); done(); }, function(done) { @@ -68,8 +68,6 @@ BlockchainMonitor.prototype.start = function(opts, cb) { }; BlockchainMonitor.prototype._initExplorer = function(explorer) { - $.checkArgument(explorer.provider == 'insight', 'Blockchain monitor ' + provider + ' not supported'); - var self = this; var socket = explorer.initSocket();