Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix find-stale-pods logic #157

Merged
merged 2 commits into from
Sep 25, 2024
Merged

Fix find-stale-pods logic #157

merged 2 commits into from
Sep 25, 2024

Conversation

jbrower95
Copy link
Contributor

@jbrower95 jbrower95 commented Sep 25, 2024

  • Added additional logs under --verbose for find-stale-pods.
  • Fixed an issue where allValidatorInfo (poorly named) was assumed to have validatorInfo structs for all validators, which caused a silent default-value to propagate and under-account for the eigenpod's beacon balance.
  • Fixed several floating point precision issues related to uint64 and big.Float.

return withdrawal != nil && strings.EqualFold(*withdrawal, eigenpod)
})

podValidatorInfo, err := FetchMultipleOnchainValidatorInfo(ctx, eth, eigenpod, validatorsForEigenpod)
Copy link
Contributor Author

@jbrower95 jbrower95 Sep 25, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

here we explicitly refetch validatorInfo, since we only fetch validator info re: slashed validators in the beginning.

@jbrower95 jbrower95 marked this pull request as ready for review September 25, 2024 20:18
@jbrower95 jbrower95 merged commit f6492b1 into master Sep 25, 2024
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants