Apply suggestions from code review

Co-Authored-By: JustinDrake <drakefjustin@gmail.com>
This commit is contained in:
Danny Ryan 2019-01-28 18:31:13 +00:00 committed by GitHub
parent b6fcf3272e
commit 9b7d94f07b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -361,7 +361,7 @@ The following data structures are defined as [SimpleSerialize (SSZ)](https://git
# Attestation data
'data': AttestationData,
# Custody bit
'custody_bit': bool,
'custody_bit': 'bool',
}
```
@ -1624,7 +1624,7 @@ For each `attestation` in `block.body.attestations`:
hash_tree_root(AttestationDataAndCustodyBit(data=attestation.data, custody_bit=0b1)),
],
signature=attestation.aggregate_signature,
domain=get_domain(state.fork, attestation.data.slot, DOMAIN_ATTESTATION),
domain=get_domain(state.fork, slot_to_epoch(attestation.data.slot), DOMAIN_ATTESTATION),
)
```