From a6c80e4f181bce6c0f1e537d375b97720c7ee344 Mon Sep 17 00:00:00 2001 From: Nico Flaig Date: Mon, 7 Aug 2023 20:04:54 +0200 Subject: [PATCH] chore: correct error message if state is not within ws period --- 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` ); } }