From 4ac29f75736b792c2a4254aa358a6273841d11c7 Mon Sep 17 00:00:00 2001 From: Justin Brower Date: Tue, 20 Aug 2024 11:40:00 -0400 Subject: [PATCH] nits --- cli/core/findStalePods.go | 9 +-------- cli/main.go | 2 +- 2 files changed, 2 insertions(+), 9 deletions(-) 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,