Skip to content

Commit

Permalink
beacon interface
Browse files Browse the repository at this point in the history
  • Loading branch information
nivBlox committed Dec 26, 2022
1 parent 6f8550d commit 6e00140
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion ssv/aggregator.go
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ func (r *AggregatorRunner) ProcessPreConsensus(signedMsg *SignedPartialSignature
// TODO waitToSlotTwoThirds

// get block data
res, err := r.GetBeaconNode().SubmitAggregateSelectionProof(duty.Slot, duty.CommitteeIndex, duty.CommitteeLength, fullSig)
res, err := r.GetBeaconNode().SubmitAggregateSelectionProof(duty.Slot, duty.CommitteeIndex, duty.CommitteeLength, duty.ValidatorIndex, fullSig)
if err != nil {
return errors.Wrap(err, "failed to submit aggregate and proof")
}
Expand Down
2 changes: 1 addition & 1 deletion ssv/types.go
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ type ProposerCalls interface {
// AggregatorCalls interface has all attestation aggregator duty specific calls
type AggregatorCalls interface {
// SubmitAggregateSelectionProof returns an AggregateAndProof object
SubmitAggregateSelectionProof(slot phase0.Slot, committeeIndex phase0.CommitteeIndex, committeeLength uint64, slotSig []byte) (*phase0.AggregateAndProof, error)
SubmitAggregateSelectionProof(slot phase0.Slot, committeeIndex phase0.CommitteeIndex, committeeLength uint64, index phase0.ValidatorIndex, slotSig []byte) (*phase0.AggregateAndProof, error)
// SubmitSignedAggregateSelectionProof broadcasts a signed aggregator msg
SubmitSignedAggregateSelectionProof(msg *phase0.SignedAggregateAndProof) error
}
Expand Down
2 changes: 1 addition & 1 deletion types/testingutils/beacon_node.go
Original file line number Diff line number Diff line change
Expand Up @@ -396,7 +396,7 @@ func (bn *TestingBeaconNode) SubmitBeaconBlock(block *bellatrix.SignedBeaconBloc
}

// SubmitAggregateSelectionProof returns an AggregateAndProof object
func (bn *TestingBeaconNode) SubmitAggregateSelectionProof(slot spec.Slot, committeeIndex spec.CommitteeIndex, committeeLength uint64, slotSig []byte) (*spec.AggregateAndProof, error) {
func (bn *TestingBeaconNode) SubmitAggregateSelectionProof(slot spec.Slot, committeeIndex spec.CommitteeIndex, committeeLength uint64, index spec.ValidatorIndex, slotSig []byte) (*spec.AggregateAndProof, error) {
return TestingAggregateAndProof, nil
}

Expand Down

0 comments on commit 6e00140

Please sign in to comment.