http: fix range route.

This commit is contained in:
Christopher Jeffrey 2016-08-16 13:02:12 -07:00
parent e2d530c0da
commit 70684d37c3
No known key found for this signature in database
GPG Key ID: 8962AB9DE6666BBD

View File

@ -833,7 +833,7 @@ HTTPServer.prototype._init = function _init() {
this.get('/wallet/:id/tx/range', function(req, res, next, send) {
var account = req.options.account;
var options = req.options;
req.walletdb.getRange(account, options, function(err, txs) {
req.wallet.getRange(account, options, function(err, txs) {
if (err)
return next(err);