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

Companion for #10403: Remove Default for AccountId #842

Merged
merged 14 commits into from
Dec 14, 2021

Conversation

gavofyork
Copy link
Member

@gavofyork gavofyork commented Dec 8, 2021

Comment on lines +228 to +232

let balances = vec![(1, 100), (2, 100), (3, 100), (4, 100), (5, 100)];
let keys = balances
.iter()
.map(|i| (*i, *i, MockSessionKeys { aura: UintAuthorityId(*i) }))
.map(|&(i, _)| (i, i, MockSessionKeys { aura: UintAuthorityId(i) }))
Copy link
Member

Choose a reason for hiding this comment

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

this is a logic change. Before the keys only included [1, 2], and now has 1 through 5.

Is there a reason?

Copy link
Member Author

Choose a reason for hiding this comment

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

Yes - other keys were used in tests as validators, but they won't show up in the validator list unless they have a session key defined (this is the change).

They always should have had a session key defined, but we got away without it previously because we used a very lazy and not very correct .unwrap_or_default() when retrieving the validators' session keys.

@shawntabrizi
Copy link
Member

bot merge

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
B0-silent Changes should not be mentioned in any release notes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants