Browse Source

enforce max gap limit on v3

activeAddress
Ivan Socolsky 9 years ago
parent
commit
784a5ad1dc
  1. 12
      lib/expressapp.js

12
lib/expressapp.js

@ -280,7 +280,19 @@ ExpressApp.prototype.start = function(opts, cb) {
});
});
// DEPRECATED
router.post('/v2/addresses/', function(req, res) {
getServerWithAuth(req, res, function(server) {
server.createAddress({
ignoreMaxGap: true
}, function(err, address) {
if (err) return returnError(err, res, req);
res.json(address);
});
});
});
router.post('/v3/addresses/', function(req, res) {
getServerWithAuth(req, res, function(server) {
server.createAddress(req.body, function(err, address) {
if (err) return returnError(err, res, req);

Loading…
Cancel
Save