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

(BIDS-2169) return “OK” and all the information a missing slot has #2641

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

Conversation

gocoffeecup
Copy link
Contributor

@gocoffeecup gocoffeecup commented Oct 24, 2023

🤖 Generated by Copilot at 8ce3abc

Refactored handlers/api.go to use a blockInfo struct for block queries. This improves performance and readability of the code.


// status 2 = missed slots
if len(blockInfo.BlockRootHash) != 32 && blockInfo.Status != "2" {
sendErrorResponse(w, r.URL.String(), "could not retrieve db resultsyy")
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

"resultsyy" 🙃

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

When trying the endpoint on missed slots the data returned is a huge array consisting of the same slot object, e.g. /api/v1/slot/230431 on Holesky gives me this (5984 elements):
image

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.

None yet

2 participants