Use hashset to filter validators ids in http_api (#5468)

* Use hashset to filter validators ids in http_api

* Update beacon_node/http_api/src/validators.rs
This commit is contained in:
0xalex88
2024-04-08 20:49:03 -07:00
committed by GitHub
parent 06eb181b42
commit 1b88d29807
2 changed files with 13 additions and 16 deletions

View File

@@ -281,7 +281,7 @@ pub struct FinalityCheckpointsData {
pub finalized: Checkpoint,
}
#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
#[derive(Debug, Clone, Eq, PartialEq, Hash, Serialize, Deserialize)]
#[serde(into = "String")]
#[serde(try_from = "std::borrow::Cow<str>")]
pub enum ValidatorId {