From fce1d4d7aa2ecccf44abe21e36dd62e61b088934 Mon Sep 17 00:00:00 2001 From: Ivan Socolsky Date: Mon, 11 May 2015 15:35:25 -0300 Subject: [PATCH] connect to locker server by default --- config.js | 8 ++++---- lib/blockchainmonitor.js | 3 ++- lib/templates/new_copayer.plain | 2 ++ messagebroker/{bws-messagebroker.js => messagebroker.js} | 0 4 files changed, 8 insertions(+), 5 deletions(-) create mode 100644 lib/templates/new_copayer.plain rename messagebroker/{bws-messagebroker.js => messagebroker.js} (100%) diff --git a/config.js b/config.js index db5adf8..90b92b7 100644 --- a/config.js +++ b/config.js @@ -18,10 +18,10 @@ var config = { }, lockOpts: { // To use locker-server, uncomment this: - // lockerServer: { - // host: 'localhost', - // port: 3231, - // }, + lockerServer: { + host: 'localhost', + port: 3231, + }, }, messageBrokerOpts: { // To use message broker server, uncomment this: diff --git a/lib/blockchainmonitor.js b/lib/blockchainmonitor.js index f89edb6..a756b3f 100644 --- a/lib/blockchainmonitor.js +++ b/lib/blockchainmonitor.js @@ -9,6 +9,8 @@ log.debug = log.verbose; var BlockchainExplorer = require('./blockchainexplorer'); var Storage = require('./storage'); var MessageBroker = require('./messagebroker'); +var Lock = require('./lock'); +var EmailService = require('./emailservice'); var Notification = require('./model/notification'); @@ -84,7 +86,6 @@ BlockchainMonitor.prototype._initExplorer = function(provider, network, url) { BlockchainMonitor.prototype._handleIncommingTx = function(data) { var self = this; - var walletId = walletService.walletId; if (!data || !data.vout) return; diff --git a/lib/templates/new_copayer.plain b/lib/templates/new_copayer.plain new file mode 100644 index 0000000..2cc1e53 --- /dev/null +++ b/lib/templates/new_copayer.plain @@ -0,0 +1,2 @@ +<%= subjectPrefix %>New copayer +A new copayer just joined your wallet <%= walletName %>. diff --git a/messagebroker/bws-messagebroker.js b/messagebroker/messagebroker.js similarity index 100% rename from messagebroker/bws-messagebroker.js rename to messagebroker/messagebroker.js