Skip to content

Commit

Permalink
nits
Browse files Browse the repository at this point in the history
  • Loading branch information
jbrower95 committed Aug 20, 2024
1 parent 30fb7b3 commit 4ac29f7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 9 deletions.
9 changes: 1 addition & 8 deletions cli/core/findStalePods.go
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
2 changes: 1 addition & 1 deletion cli/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 <args>",
Flags: []cli.Flag{
ExecNodeFlag,
Expand Down

0 comments on commit 4ac29f7

Please sign in to comment.