Skip to content

Commit

Permalink
Define current_slot
Browse files Browse the repository at this point in the history
  • Loading branch information
paulhauner committed Jan 18, 2022
1 parent 0ec61bd commit bfe4172
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions sync/optimistic.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,9 @@ Let `optimistic_roots: Set[Root]` be the set of `hash_tree_root(block)` for all
optimistically imported blocks which have only received a `SYNCING` designation
from an execution engine (i.e., they are not known to be `INVALID` or `VALID`).

Let `current_slot: Slot` be `(time - genesis_time) // SECONDS_PER_SLOT` where
`time` is the UNIX time according to the local system clock.

```python
@dataclass
class OptimisticStore(object):
Expand Down

0 comments on commit bfe4172

Please sign in to comment.