From 3fd0eaa67a2996d55caa152f6c24c194c85df6ab Mon Sep 17 00:00:00 2001 From: Aditya Asgaonkar Date: Tue, 15 Sep 2020 17:37:38 -0700 Subject: [PATCH] Fix in WS guide --- specs/phase0/weak-subjectivity.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/specs/phase0/weak-subjectivity.md b/specs/phase0/weak-subjectivity.md index 92a5f738f..880f57094 100644 --- a/specs/phase0/weak-subjectivity.md +++ b/specs/phase0/weak-subjectivity.md @@ -93,7 +93,7 @@ Clients may choose to validate that the input Weak Subjectivity Checkpoint is no ws_period = compute_weak_subjectivity_period(ws_state) ws_state_epoch = compute_epoch_at_slot(ws_state.slot) current_epoch = compute_epoch_at_slot(get_current_slot(store)) - assert current_epoch > ws_state_epoch + ws_period, "The input Weak Subjectivity Checkpoint is stale" + assert current_epoch <= ws_state_epoch + ws_period, "The input Weak Subjectivity Checkpoint is stale" ``` ## Distributing Weak Subjectivity Checkpoints