mirror of
https://github.com/sigp/lighthouse.git
synced 2026-04-20 22:38:34 +00:00
Correct output type thanks Michael
This commit is contained in:
@@ -2669,7 +2669,7 @@ impl BeaconNodeHttpClient {
|
|||||||
pub async fn post_validator_beacon_committee_selections(
|
pub async fn post_validator_beacon_committee_selections(
|
||||||
&self,
|
&self,
|
||||||
selections: &[BeaconCommitteeSelection],
|
selections: &[BeaconCommitteeSelection],
|
||||||
) -> Result<GenericResponse<Vec<SelectionProof>>, Error> {
|
) -> Result<GenericResponse<Vec<BeaconCommitteeSelection>>, Error> {
|
||||||
let mut path = self.eth_path(V1)?;
|
let mut path = self.eth_path(V1)?;
|
||||||
|
|
||||||
path.path_segments_mut()
|
path.path_segments_mut()
|
||||||
|
|||||||
@@ -162,12 +162,17 @@ async fn make_selection_proof<T: SlotClock + 'static, E: EthSpec>(
|
|||||||
}
|
}
|
||||||
})
|
})
|
||||||
.await;
|
.await;
|
||||||
response
|
SelectionProof::from(
|
||||||
.map_err(|e| {
|
response
|
||||||
Error::FailedToProduceSelectionProof(ValidatorStoreError::Middleware(e.to_string()))
|
.map_err(|e| {
|
||||||
})?
|
Error::FailedToProduceSelectionProof(ValidatorStoreError::Middleware(
|
||||||
.data[0]
|
e.to_string(),
|
||||||
.clone()
|
))
|
||||||
|
})?
|
||||||
|
.data[0]
|
||||||
|
.selection_proof
|
||||||
|
.clone(),
|
||||||
|
)
|
||||||
} else {
|
} else {
|
||||||
validator_store
|
validator_store
|
||||||
.produce_selection_proof(duty.pubkey, duty.slot)
|
.produce_selection_proof(duty.pubkey, duty.slot)
|
||||||
|
|||||||
Reference in New Issue
Block a user