ChainSafe / ChainSafe/lodestar
Check `earliest_available_slot` when handling by root/range requests
Open
meta-bug
spec-fulu :zebra:
- Dominant language
- TypeScript
- Stars
- 1.4k
- Forks
- 483
- Avg merge
- 1d 18h
- Merged PRs (30d)
- 156
Description
This was highlighted in a security report
Although it's not a big issue but we should be checking `earliest_available_slot` and cancel requests early.
This also applies for block requests for post-fulu.
Do we wanna close the connection or throw an error?
Contributor guide
Research direction
Trace the request handling for by-root/range requests and the block requests mentioned for post-Fulu, then locate where earliest_available_slot is available. Clarify whether invalid requests should close the connection or return an error, and verify that requests are cancelled early in both paths.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- typescript
- Domain
- blockchain
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100