Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Deduplicate session.validators #139

Merged
merged 1 commit into from
Feb 10, 2025

Conversation

Marcin-Radecki
Copy link

This change just deduplicates session.validators storage. It is required in v15 node, as that storage has 900 entries now - representing 900 slots. This PR does not affect v14 version, as deduplication does not affect session.validators order.

Implementation is not ideal, as still there's some code duplication - ideally I'd like to see api.query.session.vliadators only once in page-staking.

Also, I analyzed if those v15 changes can impact other part of this repo, but they are not:

  • apart page-staking there are no other usages of api.query.session.vliadators
  • api-derive uses api.query.session.vliadators, but thankfully we don't use any of such calls

Copy link

@youPickItUp youPickItUp left a comment

Choose a reason for hiding this comment

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

LGTM!

@Marcin-Radecki Marcin-Radecki merged commit 309d6a2 into A0-2760 Feb 10, 2025
5 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