fix AggregateAndProof definition
This commit is contained in:
parent
e2c68e075f
commit
c4daa726b5
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue