Skip to content

Commit

Permalink
reverse params in get_aggregate_and_proof to match ssz type
Browse files Browse the repository at this point in the history
  • Loading branch information
djrtwo committed Feb 11, 2020
1 parent bf8252a commit 700d87c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions specs/phase0/validator.md
Original file line number Diff line number Diff line change
Expand Up @@ -468,12 +468,12 @@ Selection proofs are provided in `AggregateAndProof` to prove to the gossip chan

`AggregateAndProof` messages are signed by the aggregator and broadcast inside of `SignedAggregateAndProof` objects to prevent a class of DoS attacks and message forgeries.

First, `aggregate_and_proof = get_aggregate_and_proof(state, aggregate_attestation, validator_index, privkey)` is contructed.
First, `aggregate_and_proof = get_aggregate_and_proof(state, validator_index, aggregate_attestation, privkey)` is contructed.

```python
def get_aggregate_and_proof(state: BeaconState,
aggregate: Attestation,
aggregator_index: ValidatorIndex,
aggregate: Attestation,
privkey: int) -> AggregateAndProof:
return AggregateAndProof(
aggregator_index=aggregator_index,
Expand Down

0 comments on commit 700d87c

Please sign in to comment.