addresses: parseInt from and to
This commit is contained in:
parent
f890daa108
commit
c83842eb60
@ -164,10 +164,10 @@ AddressController.prototype.multitxs = function(req, res, next) {
|
|||||||
var self = this;
|
var self = this;
|
||||||
|
|
||||||
var options = {
|
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) {
|
self.node.getAddressHistory(req.addrs, options, function(err, result) {
|
||||||
if(err) {
|
if(err) {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user