addresses: parseInt from and to

This commit is contained in:
Braydon Fuller 2016-04-22 17:29:26 -04:00
parent f890daa108
commit c83842eb60

View File

@ -164,10 +164,10 @@ AddressController.prototype.multitxs = function(req, res, next) {
var self = this;
var options = {
from: req.query.from || req.body.from || 0
from: parseInt(req.query.from) || parseInt(req.body.from) || 0
};
options.to = req.query.to || req.body.to || options.from + 10;
options.to = parseInt(req.query.to) || parseInt(req.body.to) || parseInt(options.from) + 10;
self.node.getAddressHistory(req.addrs, options, function(err, result) {
if(err) {