Skip to content

Commit

Permalink
Set PUBKEYS_PER_REQUEST to 10
Browse files Browse the repository at this point in the history
  • Loading branch information
twoeths committed Jun 24, 2021
1 parent c55494c commit 08dfc71
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion packages/validator/src/services/indices.ts
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ export class IndicesService {
}

type Batch = string[][];
const PUBKEYS_PER_REQUEST = 40;
const PUBKEYS_PER_REQUEST = 10;
const REQUESTS_PER_BATCH = 5;
const MAX_PUBKEYS_PER_POLL = 5 * PUBKEYS_PER_REQUEST * REQUESTS_PER_BATCH;

Expand Down
4 changes: 2 additions & 2 deletions packages/validator/test/unit/services/indices.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -41,10 +41,10 @@ describe("pubkeysToBatches", function () {
},
];
const maxPubkeysPerRequest = 2;
const maxRequesPerBatch = 3;
const maxRequestsPerBatch = 3;
for (const {pubkeys, expected} of testCases) {
it(`should work with ${pubkeys.length} pubkeys`, () => {
expect(pubkeysToBatches(pubkeys, maxPubkeysPerRequest, maxRequesPerBatch)).to.be.deep.equals(expected);
expect(pubkeysToBatches(pubkeys, maxPubkeysPerRequest, maxRequestsPerBatch)).to.be.deep.equals(expected);
});
}
});

0 comments on commit 08dfc71

Please sign in to comment.