Define type and modify function

This commit is contained in:
Tan Chee Keong
2025-02-18 16:10:10 +08:00
parent 0055af56b6
commit fc657db5ea
2 changed files with 40 additions and 16 deletions

View File

@@ -948,6 +948,13 @@ pub struct PeerCount {
pub disconnecting: u64,
}
#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
pub struct BeaconCommitteeSelection {
#[serde(with = "serde_utils::quoted_u64")]
pub validator_index: u64,
pub slot: Slot,
pub selection_proof: Signature,
}
// --------- Server Sent Event Types -----------
#[derive(PartialEq, Debug, Serialize, Deserialize, Clone)]