Fix in WS guide

This commit is contained in:
Aditya Asgaonkar 2020-09-15 17:37:38 -07:00
parent 2b81ec9337
commit 3fd0eaa67a
1 changed files with 1 additions and 1 deletions

View File

@ -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_period = compute_weak_subjectivity_period(ws_state)
ws_state_epoch = compute_epoch_at_slot(ws_state.slot) ws_state_epoch = compute_epoch_at_slot(ws_state.slot)
current_epoch = compute_epoch_at_slot(get_current_slot(store)) 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 ## Distributing Weak Subjectivity Checkpoints