feat(state): Add a AnyChainBlock state request for querying blocks in side chains#10325
Merged
mergify[bot] merged 8 commits intomainfrom Feb 17, 2026
Merged
feat(state): Add a AnyChainBlock state request for querying blocks in side chains#10325mergify[bot] merged 8 commits intomainfrom
AnyChainBlock state request for querying blocks in side chains#10325mergify[bot] merged 8 commits intomainfrom
Conversation
arya2
commented
Feb 14, 2026
arya2
commented
Feb 14, 2026
…g some state requests that only query the best non-finalized chain (perhaps at the expense of holding read locks slightly longer if the added traversals are worse than the copying, probably insignicant either way but this makes it easier to add fields to NonFinalizedState without worrying) Adds a `cloned_mapped_watch_data()` method on `WatchReceiver`.
arya2
commented
Feb 14, 2026
…tions for `block` and `any_chain_block` read fns (latter renamed to `any_block()`)
arya2
commented
Feb 17, 2026
7 tasks
generate some tests
arya2
commented
Feb 17, 2026
Contributor
Merge Queue StatusRule:
This pull request spent 11 minutes 18 seconds in the queue, including 29 seconds running CI. Required conditions to merge
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Motivation
Closes #10305.
Solution
Related changes:
with_watched_data()with calls tolatest_best_chain()WatchRecieverto map the borrowed data to an owned valuelatest_best_chain()to clone only the best chain and not the rest of the non-finalized stateTests
Currently unused in Zebra and a trivial addition.
AI Disclosure
PR Checklist