Skip to content

Fix for "bounds must be positive" and faster missing parent header download#2305

Open
kushti wants to merge 8 commits into
v6.0.3from
pos-bound-fix
Open

Fix for "bounds must be positive" and faster missing parent header download#2305
kushti wants to merge 8 commits into
v6.0.3from
pos-bound-fix

Conversation

@kushti
Copy link
Copy Markdown
Member

@kushti kushti commented May 6, 2026

Summary

This PR fixes the "bounds must be positive" validation error and improves node synchronization robustness when parent headers are missing.

Changes

  • Validation: Fix bounds validation and introduce ParentHeaderNotFoundError for better error handling
  • Sync logic: Automatically request missing parent headers from older peers when ParentHeaderNotFoundError is encountered
  • Peer selection: Add fallback to Equal/Older peers after repeated failed download attempts (>5 retries)
  • Tests: Add comprehensive tests for header recovery, peer fallback logic

@kushti kushti changed the title Pos bound fix Fix for "bounds must be positive" and faster missing parent header download May 7, 2026
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.

1 participant