Skip to content

backing: improve session buffering for runtime information #3421

Closed
@alindima

Description

Where did the idea come from?

#3229 (comment)

What was done?

# 6284 (PR)

What is left to do?

  • Cache validator_groups and group_rotation_info got from request_validator_groups call to runtime (note that the now field of the GroupRotationInfo will be different for each relay parent within the session);
  • Avoid wrapping caching function errors in RuntimeApiError. Instead, the return value of those functions should be Result<..., Error>;
  • Move the cached attributes from PerSessionCache to the general-purpose RuntimeInfo (src: backing: improve session buffering for runtime information #6284 (review)).

Metadata

Assignees

Labels

C2-good-first-issueA task for a first time contributor to become familiar with the Polkadot-SDK.I9-optimisationAn enhancement to provide better overall performance in terms of time-to-completion for a task.T0-nodeThis PR/Issue is related to the topic “node”.T4-runtime_APIThis PR/Issue is related to runtime APIs.T8-polkadotThis PR/Issue is related to/affects the Polkadot network.

Type

No type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions