Merge pull request #550 from lumberj/max-ledger-sequence

Set default maxLedgerVersion to last closed ledger when requesting ac…
This commit is contained in:
Chris Clark
2015-09-16 17:11:11 -07:00

View File

@@ -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),