Skip to content

fix: avoid panic when checkpoint API returns no slots#806

Open
operagxsasha wants to merge 1 commit into
a16z:masterfrom
operagxsasha:master
Open

fix: avoid panic when checkpoint API returns no slots#806
operagxsasha wants to merge 1 commit into
a16z:masterfrom
operagxsasha:master

Conversation

@operagxsasha

Copy link
Copy Markdown

fetch_checkpoint_from_api accessed raw.data.slots[0] without checking if the slice is empty, causing a panic if a fallback endpoint returns no slots. This aligns the function with the existing defensive pattern already used in fetch_latest_checkpoint_from_services.

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