Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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
add possibility to inject non-authorities session-keys in genesis #5078
add possibility to inject non-authorities session-keys in genesis #5078
Changes from 4 commits
80719e9
1e5c9b2
8a019db
2d4b35b
5eefddc
91c5402
3c5f073
b4ae933
802a7f0
d6be583
c1f345f
4ea650c
707df69
7a8b4fd
93dbfbf
718b924
3153156
1ce0602
32e4f80
0fd97e2
1420621
395e9b6
e585289
File filter
Filter by extension
Conversations
Jump to
There are no files selected for viewing
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
IMO is worth being explicit that these keys (together with
keys
) will end up in theNextKeys
set. I.e. keys that are registered as candidates for session after next session (session # 2).And technically these are still authorities (well, authority candidates). So maybe a more appropriate name? Don't know
registered_candidates
? But naming is hard so I may be biased :-DThere was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I disagree,
non_authority_keys
are not necessarily authorities, whether they will be authorities it will be decided bySessionManager
(even in the session # 2). Just for having keys registered they will not be authorities, unless theySessionManager
decides to select them.As for the naming, I am fine with anything as I am not too biased around it.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Well.
inner_set_keys
is called, which callsput_keys
, which stores yournon_authority_keys
inNextKeys
set, which are the candidates registeredSo I still think is worth being explicit about what is the usage of this
non_authority_keys
list. Otherwise as a user the doc is not super clear.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ah got it. Yeah I can add more clarity on that for sure!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Alright so I added a comment saying that these keys are valid at least until session 2 (maybe valid is not the best word here?), but basically my intention is to say that if there is a session-key change, the first session that would pick these new keys is session number 3