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
feat(blockchain): introducing validator size cap size #2119
feat(blockchain): introducing validator size cap size #2119
Changes from 93 commits
b4a1077
f4a7d79
0f46172
22c7717
05cba80
443ac1b
10efd5e
099716d
151a533
9818c7e
160cc88
4a9fe1c
e048be4
8bf34db
d90a95a
e17d29c
8dfe59d
daa9262
92d494f
6286b20
a1a3def
b395ac2
63e4db0
36fe774
e64bc74
c6c68c3
37542a0
ea69a35
af43b93
a728bcb
97fba5c
826351d
af8c5e0
023ebfd
d66b298
43b1eb4
420f621
561f95f
09eee8e
72539e0
d8a267e
3603f6b
32fbbbc
ebff958
8c9cf2d
f51b157
5e38855
bc26a85
401ab1a
9100d91
3699c20
9a7c057
0892421
1bd5f95
174229a
3cca1f3
0ae0c7d
3df7fc7
4d3de74
77f49c6
b96f776
882b91e
bca903b
ebcf8b4
d4ec3e7
3245f96
bfca971
5d5a57d
b898788
34ea814
e2962ac
0cdb569
3f3d4eb
3d9e3ab
0183914
eda7909
3e734e0
c6b5586
e9f01e2
3bc7678
679da51
b6d62c5
f361fe4
260bddb
f3c2b50
013aa95
9b139f8
0cbd981
52c4689
80af103
976c27b
1cd96e8
e8db0d9
5ff81ac
4774160
78d6429
e8b4dfd
4f90bfe
f36db52
39b83ca
355d99b
0307a03
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.
nit can rename to
ValidatorSetCap()
for consistency with other value retrieval functions. Only the retrieval for the entire config of CometGetCometBFTConfigForSlot
has a Get prefix for some reason.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.
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.
nit: rename to lowestStakeVal
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.
nit: rename
val
tonewVal
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.
or
candidateVal
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.
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.
nit: rename to
nextEpoch
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.
rename to
lowestStakeVal(vals []ValidatorT)
or smth similar and keep as helper (no receiver StateProcessor)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.
Tricky to get rid of the receiver (which I agree is not needed) and get the typing right. We have other methods here that could be free functions and are not for this reason.
I would rather defer everything to a general cleanup of the typing system