Skip to content
This repository was archived by the owner on Mar 18, 2025. It is now read-only.

Commit 4d66c2c

Browse files
authored
Merge pull request #2918 from Analog-Labs/patches/era_zero
EraPointsJob: support fetching data for era 0
2 parents a206454 + 9a943e8 commit 4d66c2c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/common/src/scorekeeper/jobs/specificJobs/EraPointsJob.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ export const individualEraPointsJob = async (
2727
const data = await chaindata.getTotalEraPoints(eraIndex);
2828
if (
2929
data &&
30-
data.era &&
30+
data.era == eraIndex &&
3131
data.total &&
3232
data.validators &&
3333
data.validators.length > 0

0 commit comments

Comments
 (0)