Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion ethereum/src/config/checkpoints.rs
Original file line number Diff line number Diff line change
Expand Up @@ -235,7 +235,12 @@ impl CheckpointFallback {
let constructed_url = Self::construct_url(url);
let res = get(&constructed_url).await?;
let raw: RawSlotResponse = res.json().await?;
let slot = raw.data.slots[0].clone();
let slot = raw
.data
.slots
.first()
.ok_or_else(|| eyre::eyre!("no slots"))?
.clone();
slot.block_root
.ok_or_else(|| eyre::eyre!("Checkpoint not in returned slot"))
}
Expand Down