fix: missing return after version header check (#16126)

Ensure SubmitAttesterSlashingsV2 returns immediately when the
Eth-Consensus-Version header is missing. Without this early return the
handler calls version.FromString with an empty value and writes a second
JSON error to the response, producing invalid JSON and duplicating error
output. This change aligns the handler with the error-handling pattern
used in other endpoints that validate the version header.
This commit is contained in:
SashaMalysehko
2025-12-12 19:09:35 +02:00
committed by GitHub
parent 3d35cc20ec
commit d5127233e4
3 changed files with 31 additions and 0 deletions

View File

@@ -0,0 +1,3 @@
## Fixed
- Fix missing return after version header check in SubmitAttesterSlashingsV2.