From 108b8ed95b1793c65bb9c9d3dbab0553816c26a7 Mon Sep 17 00:00:00 2001 From: Nico Flaig Date: Mon, 7 Aug 2023 20:29:48 +0200 Subject: [PATCH] chore: correct error message if state is not within ws period (#5859) --- packages/state-transition/src/util/weakSubjectivity.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/state-transition/src/util/weakSubjectivity.ts b/packages/state-transition/src/util/weakSubjectivity.ts index 07f0fe764d6a..4614534bcb27 100644 --- a/packages/state-transition/src/util/weakSubjectivity.ts +++ b/packages/state-transition/src/util/weakSubjectivity.ts @@ -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` ); } }