Skip to content
This repository was archived by the owner on Nov 15, 2023. It is now read-only.

Conversation

@ordian
Copy link

@ordian ordian commented Jul 12, 2021

cc #2987

In order to solve #3356 (comment) IIUC we need to query a session_index_for_child for a grandparent of the head and then use the rolling session with that index, is that correct?

I guess we can also cache authorities based on session_index_for_child, but that would require an extra call to the runtime and probably warrant some tweaks to the runtime api macros.

@ordian ordian added A0-please_review Pull request needs code review. B0-silent Changes should not be mentioned in any release notes C1-low PR touches the given topic and has a low impact on builders. labels Jul 12, 2021
@ordian ordian requested a review from rphmeier July 12, 2021 13:55
@rphmeier
Copy link
Contributor

In order to solve #3356 (comment) IIUC we need to query a session_index_for_child for a grandparent of the head and then use the rolling session with that index, is that correct

I think so, but that assumption might be invalidated by contextual execution. We might also lean on the assumption that the runtime backs/includes candidates in block B only from the same session as B and avoid making queries about anything except the most recent block.

Copy link
Contributor

@Lldenaurois Lldenaurois left a comment

Choose a reason for hiding this comment

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

LGTM

@ordian ordian merged commit ac38d38 into master Jul 12, 2021
@ordian ordian deleted the ao-more-fine-grained-runtime-api-caching branch July 12, 2021 16:14
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

A0-please_review Pull request needs code review. B0-silent Changes should not be mentioned in any release notes C1-low PR touches the given topic and has a low impact on builders.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants