Update 0_beacon-chain-validator.md

This commit is contained in:
Hsiao-Wei Wang
2019-02-23 00:31:27 +08:00
committed by GitHub
parent 68b5fe5b9f
commit c96f709505

View File

@@ -350,6 +350,8 @@ def get_committee_assignment(
* ``assignment[3]`` is a bool signalling if the validator is expected to propose
a beacon block at the assigned slot.
"""
previous_epoch = get_previous_epoch(state)
next_epoch = get_current_epoch(state)
assert previous_epoch <= epoch <= next_epoch
epoch_start_slot = get_epoch_start_slot(epoch)