This commit is contained in:
Tan Chee Keong
2025-02-20 13:37:40 +08:00
parent 7ff3ffe8d3
commit d8d31b7b01
3 changed files with 4 additions and 2 deletions

View File

@@ -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<SelectionProof>, Error> { ) -> Result<GenericResponse<Vec<SelectionProof>>, Error> {
let mut path = self.eth_path(V1)?; let mut path = self.eth_path(V1)?;
path.path_segments_mut() path.path_segments_mut()

View File

@@ -8,6 +8,7 @@ use ssz::Encode;
use std::cmp; use std::cmp;
#[derive(arbitrary::Arbitrary, PartialEq, Debug, Clone, Serialize, Deserialize)] #[derive(arbitrary::Arbitrary, PartialEq, Debug, Clone, Serialize, Deserialize)]
#[serde(transparent)]
pub struct SelectionProof(Signature); pub struct SelectionProof(Signature);
impl SelectionProof { impl SelectionProof {

View File

@@ -159,7 +159,8 @@ async fn make_selection_proof<T: SlotClock + 'static, E: EthSpec>(
.map_err(|e| { .map_err(|e| {
Error::FailedToProduceSelectionProof(ValidatorStoreError::Middleware(e.to_string())) Error::FailedToProduceSelectionProof(ValidatorStoreError::Middleware(e.to_string()))
})? })?
.data .data[0]
.clone()
} else { } else {
validator_store validator_store
.produce_selection_proof(duty.pubkey, duty.slot) .produce_selection_proof(duty.pubkey, duty.slot)