Merge pull request #500 from paulhauner/patch-5

Fix field name error on eth1_data
This commit is contained in:
vbuterin 2019-01-29 08:11:42 -06:00 committed by GitHub
commit cc1e80c84b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -1757,7 +1757,7 @@ Define the following helpers to process attestation inclusion rewards and inclus
If `next_epoch % ETH1_DATA_VOTING_PERIOD == 0`:
* If `eth1_data_vote.vote_count * 2 > ETH1_DATA_VOTING_PERIOD * EPOCH_LENGTH` for some `eth1_data_vote` in `state.eth1_data_votes` (ie. more than half the votes in this voting period were for that value), set `state.latest_eth1_data = eth1_data_vote.data`.
* If `eth1_data_vote.vote_count * 2 > ETH1_DATA_VOTING_PERIOD * EPOCH_LENGTH` for some `eth1_data_vote` in `state.eth1_data_votes` (ie. more than half the votes in this voting period were for that value), set `state.latest_eth1_data = eth1_data_vote.eth1_data`.
* Set `state.eth1_data_votes = []`.
#### Justification