Skip to content

Commit

Permalink
chore: correct error message if state is not within ws period (#5859)
Browse files Browse the repository at this point in the history
  • Loading branch information
nflaig authored Aug 7, 2023
1 parent 0401a60 commit 108b8ed
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 108b8ed

Please sign in to comment.