This repository has been archived by the owner on Nov 15, 2023. It is now read-only.
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.
Cleaner GRANDPA RPC API for proving finality #7339
Cleaner GRANDPA RPC API for proving finality #7339
Changes from 6 commits
75d59d8
c3dac36
363ba7b
1d54eb5
58477bc
10e507f
8e99c66
83ff901
107a4fa
df5cca1
6ed408a
bde6188
ec52b6f
0126c4c
efcd04b
88ea322
62a7245
65c4243
282d9f6
a5644a9
25a854a
79d1840
ef993a4
abeb9ec
fb12f98
b14d97c
4544bfd
f2c3b23
3034193
2a9a86f
c8efdbb
ceee16a
adc39b8
9feb90c
aa6282e
6d90ce3
bb6cb32
a8878a1
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.
Let's name it
Number
, I've taken some fondness to descriptive type parameter names and it's more inline with the style of the existing parameters.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.
Maybe this can go inside
AuthoritySet
? We will always be operating on both at the same time, i.e. when we finalize something fromAuthoritySet
is also when we update this.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.
I know I suggested not storing the set_id and instead implicitly figuring out by the position in the array. The only disadvantage of this approach is that it breaks for nodes that didn't sync from scratch with this code. I guess it might be better to store the
set_id
explicitly. Additionally in the future we might start syncing from a specific checkpoint (rather from genesis always) or we may warp sync, in both cases we won't import all blocks.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.
Let's keep the newline since we have a template for the header.