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

core/fetcher: enhance ValidatorSet method with improved error handlin… #4038

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

MozirDmitriy
Copy link

…g and safety checks

This commit improves the ValidatorSet method in the BlockFetcher by:

  • Adding validation for negative block heights
  • Implementing protection against excessive pagination iterations
  • Improving error messages with detailed context
  • Optimizing memory allocation for validator slice
  • Adding context cancellation handling
  • Enhancing edge case handling for empty validator pages

These changes make the method more robust, safer, and easier to debug while maintaining backward compatibility.

…g and safety checks

This commit improves the ValidatorSet method in the BlockFetcher by:
- Adding validation for negative block heights
- Implementing protection against excessive pagination iterations
- Improving error messages with detailed context
- Optimizing memory allocation for validator slice
- Adding context cancellation handling
- Enhancing edge case handling for empty validator pages

These changes make the method more robust, safer, and easier to debug
while maintaining backward compatibility.
@github-actions github-actions bot added the external Issues created by non node team members label Jan 10, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
external Issues created by non node team members
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant