Skip to content

Commit

Permalink
Remove get_state_root from state transition doc
Browse files Browse the repository at this point in the history
Remove `get_state_root` from the state transition function spec because it is not used by the state transition function.
  • Loading branch information
JustinDrake authored May 1, 2019
1 parent 2787fea commit 427a53c
Showing 1 changed file with 0 additions and 13 deletions.
13 changes: 0 additions & 13 deletions specs/core/0_beacon-chain.md
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,6 @@
- [`get_crosslink_committees_at_slot`](#get_crosslink_committees_at_slot)
- [`get_block_root_at_slot`](#get_block_root_at_slot)
- [`get_block_root`](#get_block_root)
- [`get_state_root`](#get_state_root)
- [`get_randao_mix`](#get_randao_mix)
- [`get_active_index_root`](#get_active_index_root)
- [`generate_seed`](#generate_seed)
Expand Down Expand Up @@ -868,18 +867,6 @@ def get_block_root(state: BeaconState,
return get_block_root_at_slot(state, get_epoch_start_slot(epoch))
```

### `get_state_root`

```python
def get_state_root(state: BeaconState,
slot: Slot) -> Bytes32:
"""
Return the state root at a recent ``slot``.
"""
assert slot < state.slot <= slot + SLOTS_PER_HISTORICAL_ROOT
return state.latest_state_roots[slot % SLOTS_PER_HISTORICAL_ROOT]
```

### `get_randao_mix`

```python
Expand Down

0 comments on commit 427a53c

Please sign in to comment.