Skip to content

Commit

Permalink
chore: correct error message if state is not within ws period
Browse files Browse the repository at this point in the history
  • Loading branch information
nflaig committed Aug 7, 2023
1 parent a7466f5 commit a6c80e4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/state-transition/src/util/weakSubjectivity.ts
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ export function ensureWithinWeakSubjectivityPeriod(
const clockEpoch = computeEpochAtSlot(getCurrentSlot(config, wsState.genesisTime));
if (clockEpoch > wsStateEpoch + wsPeriod) {
throw new Error(
`The downloaded state with epoch ${wsStateEpoch} is not within subjectivity period of ${wsPeriod} from the current epoch ${clockEpoch}. Please verify your checkpoint source`
`The downloaded state with epoch ${wsStateEpoch} is not within weak subjectivity period of ${wsPeriod} from the current epoch ${clockEpoch}. Please verify your checkpoint source`
);
}
}

0 comments on commit a6c80e4

Please sign in to comment.