@@ -1615,6 +1615,7 @@ proc produceAttestationData*(
16151615proc submitPoolAttestationsV2 * (
16161616 vc: ValidatorClientRef ,
16171617 data: seq [ForkyAttestation ],
1618+ fork: ConsensusFork ,
16181619 strategy: ApiStrategyKind
16191620): Future [bool ] {.async : (raises: [CancelledError , ValidatorApiError ]).} =
16201621 const
@@ -1629,7 +1630,7 @@ proc submitPoolAttestationsV2*(
16291630 vc.SlotDuration ,
16301631 ViableNodeStatus ,
16311632 {BeaconNodeRole .AttestationPublish },
1632- submitPoolAttestationsV2 (it, data)):
1633+ submitPoolAttestationsV2 (it, fork, data)):
16331634 if apiResponse.isErr ():
16341635 handleCommunicationError ()
16351636 ApiResponse [bool ].err (apiResponse.error)
@@ -1657,7 +1658,7 @@ proc submitPoolAttestationsV2*(
16571658 vc.SlotDuration ,
16581659 ViableNodeStatus ,
16591660 {BeaconNodeRole .AttestationPublish },
1660- submitPoolAttestationsV2 (it, data)):
1661+ submitPoolAttestationsV2 (it, fork, data)):
16611662 if apiResponse.isErr ():
16621663 handleCommunicationError ()
16631664 false
@@ -2169,6 +2170,7 @@ proc produceSyncCommitteeContribution*(
21692170proc publishAggregateAndProofsV2 * (
21702171 vc: ValidatorClientRef ,
21712172 data: seq [ForkySignedAggregateAndProof ],
2173+ fork: ConsensusFork ,
21722174 strategy: ApiStrategyKind
21732175): Future [bool ] {.async : (raises: [CancelledError , ValidatorApiError ]).} =
21742176 const
@@ -2178,12 +2180,10 @@ proc publishAggregateAndProofsV2*(
21782180
21792181 case strategy
21802182 of ApiStrategyKind .First , ApiStrategyKind .Best :
2181- let res = vc.firstSuccessParallel (RestPlainResponse ,
2182- bool ,
2183- vc.SlotDuration ,
2184- ViableNodeStatus ,
2185- {BeaconNodeRole .AggregatedPublish },
2186- publishAggregateAndProofsV2 (it, data)):
2183+ let res = vc.firstSuccessParallel (
2184+ RestPlainResponse , bool , vc.SlotDuration , ViableNodeStatus ,
2185+ {BeaconNodeRole .AggregatedPublish },
2186+ publishAggregateAndProofsV2 (it, fork, data)):
21872187 if apiResponse.isErr ():
21882188 handleCommunicationError ()
21892189 ApiResponse [bool ].err (apiResponse.error)
@@ -2210,11 +2210,10 @@ proc publishAggregateAndProofsV2*(
22102210 res.get ()
22112211
22122212 of ApiStrategyKind .Priority :
2213- vc.firstSuccessSequential (RestPlainResponse ,
2214- vc.SlotDuration ,
2215- ViableNodeStatus ,
2216- {BeaconNodeRole .AggregatedPublish },
2217- publishAggregateAndProofsV2 (it, data)):
2213+ vc.firstSuccessSequential (
2214+ RestPlainResponse , vc.SlotDuration , ViableNodeStatus ,
2215+ {BeaconNodeRole .AggregatedPublish },
2216+ publishAggregateAndProofsV2 (it, fork, data)):
22182217 if apiResponse.isErr ():
22192218 handleCommunicationError ()
22202219 false
0 commit comments