address: pass "from" and "to" options

This commit is contained in:
Braydon Fuller 2016-05-10 13:52:01 -04:00
parent 4e54d195b9
commit 29e96e83ae

View File

@ -15,6 +15,11 @@ AddressController.prototype.show = function(req, res) {
noTxList: parseInt(req.query.noTxList)
};
if (req.query.from && req.query.to) {
options.from = parseInt(req.query.from);
options.to = parseInt(req.query.to);
}
this.getAddressSummary(req.addr, options, function(err, data) {
if(err) {
return common.handleErrors(err, res);