Update 0_beacon-chain.md

This commit is contained in:
Justin 2019-01-23 12:48:54 +00:00 committed by GitHub
parent ee081e160c
commit ac85e06e81
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -1109,8 +1109,7 @@ def verify_bitfield(bitfield: bytes, size: int) -> bool:
```python
def verify_slashable_vote_data(state: BeaconState, slashable_vote_data: SlashableVoteData) -> bool:
# [TO BE REMOVED IN PHASE 1]
if len(slashable_vote_data.custody_bit_1_indices) > 0:
if len(slashable_vote_data.custody_bit_1_indices) > 0: # [TO BE REMOVED IN PHASE 1]
return False
if len(indices(slashable_vote_data)) > MAX_CASPER_VOTES:
@ -1532,6 +1531,7 @@ For each `attestation` in `block.body.attestations`:
assert verify_bitfield(attestation.aggregation_bitfield)
assert verify_bitfield(attestation.custody_bitfield)
assert attestation.custody_bitfield & attestation.aggregation_bitfield == attestation.custody_bitfield
assert attestation.custody_bitfield == 0 # [TO BE REMOVED IN PHASE 1]
```
* Verify aggregate signature: