From 6e001408c8e4da0f368dfc5a0e741d35fad26296 Mon Sep 17 00:00:00 2001 From: nivBlox Date: Mon, 26 Dec 2022 18:50:09 +0200 Subject: [PATCH] beacon interface --- ssv/aggregator.go | 2 +- ssv/types.go | 2 +- types/testingutils/beacon_node.go | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/ssv/aggregator.go b/ssv/aggregator.go index 551ac1331..7e9122a4c 100644 --- a/ssv/aggregator.go +++ b/ssv/aggregator.go @@ -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") } diff --git a/ssv/types.go b/ssv/types.go index cb701f75b..f82c71bfc 100644 --- a/ssv/types.go +++ b/ssv/types.go @@ -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 } diff --git a/types/testingutils/beacon_node.go b/types/testingutils/beacon_node.go index 10cdcaa48..edeab979f 100644 --- a/types/testingutils/beacon_node.go +++ b/types/testingutils/beacon_node.go @@ -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 }