Revert "Set default maxLedgerVersion to last closed ledger when requesting account_tx"

This reverts commit 90b53002aa.

account_tx operates against validated ledgers only
This commit is contained in:
Alan Cohen
2015-09-25 20:18:36 -07:00
parent 87fdbc932f
commit 62a2d2ae39

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 || remote.getLedgerSequence(),
ledger_index_max: options.maxLedgerVersion || -1,
forward: options.earliestFirst,
binary: options.binary,
limit: utils.clamp(limit, 10, 400),