mirror of
https://github.com/sigp/lighthouse.git
synced 2026-03-15 19:02:42 +00:00
Add Vec
This commit is contained in:
@@ -2669,7 +2669,7 @@ impl BeaconNodeHttpClient {
|
||||
pub async fn post_validator_beacon_committee_selections(
|
||||
&self,
|
||||
selections: &[BeaconCommitteeSelection],
|
||||
) -> Result<GenericResponse<SelectionProof>, Error> {
|
||||
) -> Result<GenericResponse<Vec<SelectionProof>>, Error> {
|
||||
let mut path = self.eth_path(V1)?;
|
||||
|
||||
path.path_segments_mut()
|
||||
|
||||
@@ -8,6 +8,7 @@ use ssz::Encode;
|
||||
use std::cmp;
|
||||
|
||||
#[derive(arbitrary::Arbitrary, PartialEq, Debug, Clone, Serialize, Deserialize)]
|
||||
#[serde(transparent)]
|
||||
pub struct SelectionProof(Signature);
|
||||
|
||||
impl SelectionProof {
|
||||
|
||||
@@ -159,7 +159,8 @@ async fn make_selection_proof<T: SlotClock + 'static, E: EthSpec>(
|
||||
.map_err(|e| {
|
||||
Error::FailedToProduceSelectionProof(ValidatorStoreError::Middleware(e.to_string()))
|
||||
})?
|
||||
.data
|
||||
.data[0]
|
||||
.clone()
|
||||
} else {
|
||||
validator_store
|
||||
.produce_selection_proof(duty.pubkey, duty.slot)
|
||||
|
||||
Reference in New Issue
Block a user