Browse Source

Merge pull request #178 from isocolsky/ref/dirs

Relocate locker server
activeAddress
Matias Alejo Garcia 10 years ago
parent
commit
a93b914329
  1. 3
      lib/expressapp.js
  2. 6
      locker-server.js
  3. 9
      locker/locker.js
  4. 11
      package.json

3
lib/expressapp.js

@ -267,6 +267,9 @@ ExpressApp.start = function(opts) {
req.body.txProposalId = req.params['id']; req.body.txProposalId = req.params['id'];
server.removePendingTx(req.body, function(err) { server.removePendingTx(req.body, function(err) {
if (err) return returnError(err, res, req); if (err) return returnError(err, res, req);
res.json({
success: true
});
res.end(); res.end();
}); });
}); });

6
locker-server.js

@ -1,6 +0,0 @@
(function() {
var Locker = require('locker-server'),
locker = new Locker();
locker.listen(3003);
})();

9
locker/locker.js

@ -0,0 +1,9 @@
#!/usr/bin/env node
var PORT = 3003;
console.log('Server started at port ' + PORT + '...');
var Locker = require('locker-server'),
locker = new Locker();
locker.listen(PORT);

11
package.json

@ -2,7 +2,7 @@
"name": "bitcore-wallet-service", "name": "bitcore-wallet-service",
"description": "A service for Mutisig HD Bitcoin Wallets", "description": "A service for Mutisig HD Bitcoin Wallets",
"author": "BitPay Inc", "author": "BitPay Inc",
"version": "0.0.24", "version": "0.0.25",
"keywords": [ "keywords": [
"bitcoin", "bitcoin",
"copay", "copay",
@ -58,14 +58,11 @@
"test": "./node_modules/.bin/mocha", "test": "./node_modules/.bin/mocha",
"coveralls": "./node_modules/.bin/istanbul cover ./node_modules/mocha/bin/_mocha --report lcovonly -- -R spec && cat ./coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js && rm -rf ./coverage" "coveralls": "./node_modules/.bin/istanbul cover ./node_modules/mocha/bin/_mocha --report lcovonly -- -R spec && cat ./coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js && rm -rf ./coverage"
}, },
"contributors": [ "contributors": [{
{
"name": "Ivan Socolsky", "name": "Ivan Socolsky",
"email": "ivan@bitpay.com" "email": "ivan@bitpay.com"
}, }, {
{
"name": "Matias Alejo Garcia", "name": "Matias Alejo Garcia",
"email": "ematiu@gmail.com" "email": "ematiu@gmail.com"
} }]
]
} }

Loading…
Cancel
Save