Skip to content

Commit

Permalink
fix: beacon api sync update limits
Browse files Browse the repository at this point in the history
  • Loading branch information
shresthagrawal committed Oct 22, 2023
1 parent 700e8b6 commit 124bb02
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/provers/beacon-api-light/client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ export class BeaconAPIProver implements IProver {
const _cacheCount = Math.min(currentPeriod - period + 1, cacheCount);
if (!this.cachedSyncUpdate.has(period)) {
const vals = await this._getSyncUpdates(period, _cacheCount);
for (let i = 0; i < _cacheCount; i++) {
for (let i = 0; i < vals.length; i++) {
this.cachedSyncUpdate.set(period + i, vals[i]);
}
}
Expand Down

0 comments on commit 124bb02

Please sign in to comment.