Skip to content

Conversation

@ch4r10t33r
Copy link
Collaborator

Add comprehensive validation to detect and report invalid SSZ responses:

  • Check if response is text/JSON/metrics instead of binary SSZ
  • Validate slot values are within reasonable bounds (< 1B slots)
  • Validate genesis_time is a reasonable Unix timestamp
  • Provide detailed error messages showing what was received

This prevents garbage data from being reported when upstreams return Prometheus metrics or JSON error responses on the finalized endpoint.

Add comprehensive validation to detect and report invalid SSZ responses:
- Check if response is text/JSON/metrics instead of binary SSZ
- Validate slot values are within reasonable bounds (< 1B slots)
- Validate genesis_time is a reasonable Unix timestamp
- Provide detailed error messages showing what was received

This prevents garbage data from being reported when upstreams return
Prometheus metrics or JSON error responses on the finalized endpoint.
@ch4r10t33r ch4r10t33r merged commit d44a5c1 into main Jan 26, 2026
12 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