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

avoid reshuffling active validators #2605

Merged
merged 1 commit into from
Mar 10, 2021
Merged

avoid reshuffling active validators #2605

merged 1 commit into from
Mar 10, 2021

Conversation

rphmeier
Copy link
Contributor

There was a bug introduced in #2586 which caused a re-shuffle of validators in the SessionInfo, breaking everything that depends on ValidatorIndex.

@rphmeier rphmeier 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 Mar 10, 2021
Copy link
Member

@ordian ordian left a comment

Choose a reason for hiding this comment

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

Thanks for adding tests. I also missed that we pass shuffled validator in the notification in #2586.

@rphmeier rphmeier merged commit c0474d2 into master Mar 10, 2021
@rphmeier rphmeier deleted the rh-avoid-reshuffle branch March 10, 2021 23:19
@burdges
Copy link
Contributor

burdges commented Mar 10, 2021

Cool. It's handy if validators keep the same index from when they get elected to when they loose an election. :)

@rphmeier
Copy link
Contributor Author

That'd be good, but this PR actually does not do that. The validator indices will change pretty much every session based on the random seed.

@burdges
Copy link
Contributor

burdges commented Mar 10, 2021

We'll deal with that later then. It'll be a while I think before we need it for anything.

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.

3 participants