Skip to content

Commit

Permalink
Set default maxLedgerVersion to last closed ledger when requesting ac…
Browse files Browse the repository at this point in the history
…count_tx
  • Loading branch information
Alan Cohen committed Sep 16, 2015
1 parent 93c12af commit 90b5300
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/api/ledger/transactions.js
Expand Up @@ -71,7 +71,7 @@ function getAccountTx(remote, address, options, marker, limit, callback) {
const params = {
account: address,
ledger_index_min: options.minLedgerVersion || -1,
ledger_index_max: options.maxLedgerVersion || -1,
ledger_index_max: options.maxLedgerVersion || remote.getLedgerSequence(),
forward: options.earliestFirst,
binary: options.binary,
limit: utils.clamp(limit, 10, 400),
Expand Down

0 comments on commit 90b5300

Please sign in to comment.