mirror of
https://github.com/status-im/eth2.0-specs.git
synced 2025-01-11 11:14:17 +00:00
Define current_slot
This commit is contained in:
parent
0ec61bd195
commit
bfe4172584
@ -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
|
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`).
|
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
|
```python
|
||||||
@dataclass
|
@dataclass
|
||||||
class OptimisticStore(object):
|
class OptimisticStore(object):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user