Do not filter validators by status if filter is an empty list (#7884)

69d2feb12a/apis/beacon/states/validators.yaml (L128-L130) says we need to not filter if the filter is an empty list.


  Add a check for `statuses.is_empty()`.
This commit is contained in:
Daniel Knopik
2025-08-18 09:46:37 +02:00
committed by GitHub
parent 836c39efaa
commit 1fd7ead010
3 changed files with 39 additions and 14 deletions

View File

@@ -366,7 +366,7 @@ pub struct ValidatorIdentityData {
// this proposal:
//
// https://hackmd.io/bQxMDRt1RbS1TLno8K4NPg?view
#[derive(Debug, Clone, Copy, PartialEq, Serialize, Deserialize)]
#[derive(Debug, Clone, Copy, PartialEq, Eq, Hash, Serialize, Deserialize)]
#[serde(rename_all = "snake_case")]
pub enum ValidatorStatus {
PendingInitialized,