fix AggregateAndProof definition

This commit is contained in:
Dustin Brody 2019-12-06 17:01:48 +01:00 committed by tersec
parent e2c68e075f
commit c4daa726b5
2 changed files with 4 additions and 2 deletions

View File

@ -59,6 +59,7 @@ func aggregate_attestations_naively*(
# mutates state, split that off and keep this separate.
# TODO alias CommitteeIndex to actual type then convert various uint64's here
# to it
# TODO return Option[AggregateAndProof] maybe
# If the validator is selected to aggregate (`is_aggregator()`), they
# construct an aggregate attestation

View File

@ -322,8 +322,9 @@ type
# https://github.com/ethereum/eth2.0-specs/blob/v0.9.2/specs/validator/0_beacon-chain-validator.md#aggregateandproof
AggregateAndProof* = object
index: uint64
selection_proof: ValidatorSig
aggregator_index*: uint64
aggregate*: Attestation
selection_proof*: ValidatorSig
# TODO to be replaced with some magic hash caching
HashedBeaconState* = object