diff --git a/cli/core/findStalePods.go b/cli/core/findStalePods.go index c1519fa..52f7f66 100644 --- a/cli/core/findStalePods.go +++ b/cli/core/findStalePods.go @@ -140,14 +140,7 @@ func FindStaleEigenpods(ctx context.Context, eth *ethclient.Client, nodeUrl stri } }) - allWithdrawalAddresses := make(map[string]struct{}) - for _, v := range allValidatorsWithIndices { - address := executionWithdrawalAddress(v.Validator.WithdrawalCredentials) - if address != nil { - allWithdrawalAddresses[*address] = struct{}{} - } - } - + // TODO(pectra): this logic changes after the pectra upgrade. allSlashedValidators := aFilter(allValidatorsWithIndices, func(v ValidatorWithIndex) bool { if !v.Validator.Slashed { return false // we only care about slashed validators. diff --git a/cli/main.go b/cli/main.go index 7650449..099a1bd 100644 --- a/cli/main.go +++ b/cli/main.go @@ -33,7 +33,7 @@ func main() { { Name: "find-stale-pods", Args: true, - Usage: "Locate stale pods, whose balances have deviated by more than 5%% due to beacon slashing.", + Usage: "Locate stale pods, whose balances have deviated by more than 5% due to beacon slashing.", UsageText: "./cli find-stale-pods ", Flags: []cli.Flag{ ExecNodeFlag,