Skip to content

Commit

Permalink
credentials
Browse files Browse the repository at this point in the history
  • Loading branch information
akorchyn committed Mar 18, 2024
1 parent 0d5358e commit 872003a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions snapshotter/stake.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ let jsonPath = options.json;

const NearConfig = {
networkId: "mainnet",
nodeUrl: "https://go.getblock.io/c56f56ef5ae246848ea3e3b66705be4d",
nodeUrl: "https://rpc.mainnet.near.org",
archivalNodeUrl: "https://rpc.mainnet.internal.near.org",
walletUrl: "https://wallet.near.org",
};
Expand Down Expand Up @@ -95,7 +95,7 @@ const processLockups = async (delegators) => {
let lockupDelegators = Object.keys(delegators).filter(account_id => account_id.endsWith('.lockup.near'));

const { results: lockupResults, errors: lockupErrors } = await PromisePool
.withConcurrency(8)
.withConcurrency(24)
.for(lockupDelegators)
.process(async (lockupAccount) => {
let account_id = await pRetry(() => processLockup(lockupAccount), { retries: 100 });
Expand Down Expand Up @@ -152,7 +152,7 @@ async function loadDelegatorsFromValidators(validators) {
});

const { results: delegators, errors: delegatorsError } = await PromisePool
.withConcurrency(8)
.withConcurrency(24)
.for(validatorRequests)
.process(async (validatorRequest, index, pool) => {
const data = await pRetry(() => _near.viewCall(validatorRequest.account_id, "get_accounts", {
Expand Down

0 comments on commit 872003a

Please sign in to comment.