Update 0_beacon-chain.md
This commit is contained in:
parent
2d9724dbfc
commit
339a7fb63b
|
@ -1682,7 +1682,7 @@ _Note_: If there are skipped slots between a block and its parent block, run the
|
||||||
At every `slot > GENESIS_SLOT` run the following function:
|
At every `slot > GENESIS_SLOT` run the following function:
|
||||||
|
|
||||||
```python
|
```python
|
||||||
def store_state_root(state: BeaconState) -> None:
|
def cache_state_root(state: BeaconState) -> None:
|
||||||
state.latest_state_roots[state.slot % SLOTS_PER_HISTORICAL_ROOT] = hash_tree_root(state)
|
state.latest_state_roots[state.slot % SLOTS_PER_HISTORICAL_ROOT] = hash_tree_root(state)
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue