diff --git a/packages/validator/src/services/indices.ts b/packages/validator/src/services/indices.ts index 7d63123b5035..1f13777900fb 100644 --- a/packages/validator/src/services/indices.ts +++ b/packages/validator/src/services/indices.ts @@ -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; diff --git a/packages/validator/test/unit/services/indices.test.ts b/packages/validator/test/unit/services/indices.test.ts index ee69809db564..be8346bea22d 100644 --- a/packages/validator/test/unit/services/indices.test.ts +++ b/packages/validator/test/unit/services/indices.test.ts @@ -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); }); } });