Skip to content

Commit

Permalink
upd time
Browse files Browse the repository at this point in the history
  • Loading branch information
akorchyn committed Mar 15, 2024
1 parent 5aac5da commit 7ff0178
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions snapshotter/stake.js
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ async function loadDelegatorsFromValidators(validators) {
.withConcurrency(8)
.for(validators)
.process(async (accountId) =>
pRetry(() => _near.viewCall(accountId, "get_number_of_accounts", {}, blockId), { retries: 1 })
pRetry(() => _near.viewCall(accountId, "get_number_of_accounts", {}, blockId), { retries: 20 })
.then(number_of_accounts => ({ account_id: accountId, number_of_accounts }))
);

Expand All @@ -146,7 +146,7 @@ async function loadDelegatorsFromValidators(validators) {
}, blockId).then((accounts) => {
console.log(`Loading ${validatorRequest.account_id} delegators: batch #${1 + validatorRequest.from_index / 100}, added ${accounts.length} accounts`)
return accounts;
}), { retries: 2 });
}), { retries: 20 });
return data;
});
if (delegatorsError.length > 0) {
Expand Down

0 comments on commit 7ff0178

Please sign in to comment.