Merge pull request #252 from isocolsky/bcmonitor
Fix bcmonitor initialization & event redirection
This commit is contained in:
commit
82a58e3bad
|
@ -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();
|
||||
|
|
Loading…
Reference in New Issue