Update 0_beacon-chain.md
This commit is contained in:
parent
2650a2c061
commit
5619e7df9c
|
@ -814,7 +814,7 @@ def get_epoch_committee_count(state: BeaconState, epoch: Epoch) -> int:
|
||||||
```python
|
```python
|
||||||
def get_shard_delta(state: BeaconState, epoch: Epoch) -> int:
|
def get_shard_delta(state: BeaconState, epoch: Epoch) -> int:
|
||||||
"""
|
"""
|
||||||
Return the minimum number of shards that get processed at ``epoch``.
|
Return the number of shards to increment ``state.shard_shard`` during ``epoch``.
|
||||||
"""
|
"""
|
||||||
return min(get_epoch_committee_count(state, epoch), SHARD_COUNT - SHARD_COUNT // SLOTS_PER_EPOCH)
|
return min(get_epoch_committee_count(state, epoch), SHARD_COUNT - SHARD_COUNT // SLOTS_PER_EPOCH)
|
||||||
```
|
```
|
||||||
|
|
Loading…
Reference in New Issue