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
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 0 deletions

View File

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