mirror of
https://github.com/Xahau/xahau.js.git
synced 2025-11-22 21:25:49 +00:00
Check for ledger gaps in getTransactions
This commit is contained in:
@@ -77,6 +77,11 @@ function getTransactions(address, options, callback) {
|
||||
validate.getTransactionsOptions(options);
|
||||
|
||||
const remote = this.remote;
|
||||
if (!utils.hasCompleteLedgerRange(remote, options.minLedgerVersion,
|
||||
options.maxLedgerVersion)) {
|
||||
callback(new utils.common.errors.MissingLedgerHistoryError());
|
||||
}
|
||||
|
||||
if (options.start) {
|
||||
getTransaction.bind(this)(options.start, {}, (error, tx) => {
|
||||
if (error) {
|
||||
|
||||
Reference in New Issue
Block a user