mirror of
https://github.com/Xahau/xahau.js.git
synced 2025-12-06 17:27:59 +00:00
Merge pull request #550 from lumberj/max-ledger-sequence
Set default maxLedgerVersion to last closed ledger when requesting ac…
This commit is contained in:
@@ -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),
|
||||
|
||||
Reference in New Issue
Block a user