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. 19
      package.json

3
lib/expressapp.js

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

19
package.json

@ -2,7 +2,7 @@
"name": "bitcore-wallet-service",
"description": "A service for Mutisig HD Bitcoin Wallets",
"author": "BitPay Inc",
"version": "0.0.24",
"version": "0.0.25",
"keywords": [
"bitcoin",
"copay",
@ -58,14 +58,11 @@
"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"
},
"contributors": [
{
"name": "Ivan Socolsky",
"email": "ivan@bitpay.com"
},
{
"name": "Matias Alejo Garcia",
"email": "ematiu@gmail.com"
}
]
"contributors": [{
"name": "Ivan Socolsky",
"email": "ivan@bitpay.com"
}, {
"name": "Matias Alejo Garcia",
"email": "ematiu@gmail.com"
}]
}

Loading…
Cancel
Save