Skip to content

Ciptbz by diagram 6#825

Merged
fluidvanadium merged 4 commits intochainindex_passthrough_behind_zebrafrom
ciptbz_by_diagram_6
Feb 16, 2026
Merged

Ciptbz by diagram 6#825
fluidvanadium merged 4 commits intochainindex_passthrough_behind_zebrafrom
ciptbz_by_diagram_6

Conversation

@fluidvanadium
Copy link
Contributor

@fluidvanadium fluidvanadium commented Feb 9, 2026

Fixes: comments only

@fluidvanadium fluidvanadium marked this pull request as ready for review February 11, 2026 04:10
if start <= max_servable_height.min(end) {
Some(
futures::stream::iter((start.0)..=(end.0)).then(move |height| async move {
// For blocks above validator_finalized_height, it's not reorg-safe to get blocks by height. It is reorg-safe to get blocks by hash. What we need to do in this case is use our snapshot index to look up the hash at a given height, and then get that hash from the validator.
Copy link
Contributor

Choose a reason for hiding this comment

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

This is true, but is probably better served as a comment on line 786 (Ok(None)) => match ...). This line is getting heights from the finalized state.

Copy link
Contributor

Choose a reason for hiding this comment

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

In fact, this line might be unnecessarily complex...we should be able to trust any finalized blocks zebra serves us without having to check the finalized state at all..but for that I'd prefer to just...land passthrough, and open an issue for a follow-up simplification, at this point.

Copy link
Contributor

@AloeareV AloeareV left a comment

Choose a reason for hiding this comment

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

There's a comment that I think would be clearer in a different place. Not sure if this is a blocking concern, I'll leave that up to you.

@fluidvanadium fluidvanadium merged commit 6bc3bb8 into chainindex_passthrough_behind_zebra Feb 16, 2026
10 of 11 checks passed
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.

2 participants