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 validator:status command to check if a validator signer is online and producing blocks #1906
Add validator:status command to check if a validator signer is online and producing blocks #1906
Changes from 37 commits
fca5fde
33674b7
9ac6868
ebfa798
0ecea6b
94c8248
af8e695
1afa4df
b1bd6f8
3a67701
ffe6a22
1a61d52
45e819e
06b06ad
806e11b
a6a5fa9
e0cc118
3027d15
2962cd9
ace681e
5851e85
2bdf52f
a09192c
d5fc096
57c9640
d862886
ddad057
93aa9c7
bb7cdf5
41ba66b
73985d9
ec42fa3
4e962e7
3958aad
e3e2c8c
23d61fe
825d3e1
91a7f5d
0de04ca
4247518
eec6e8f
d64020b
a9220dc
80eb702
1f0c5c5
File filter
Filter by extension
Conversations
Jump to
There are no files selected for viewing
This file was deleted.
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.
Can you make these flags exclusive? Example in validatorgroup:member
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.
Done.
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.
Are these descriptions swapped?
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.
Yes. Fixed.
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.
Rather than add additional checks, why don't we just pull the
account
from the signer and run the same checks on the account?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.
At this point in the code it is unclear whether the accounts given are valid and I wanted to avoid an opaque call reversion. I realized that as coded it still has that issue, so I've added an
isAccount
check.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.
This is great! Can we put this functionality in the
election
module instead?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.
We could add a command like
election:validator-is-elected
, but I personally don't see a ton of value in that becauseelection:current
andelection:run
exist and combined with grep you can tell whether a specific validator is in the set.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.
but would be elected to the validator set for the next epoch if an election were to be held now. Please wait until the next epoch.
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.
and would not be elected to the validator set for the next epoch if an election were to be held now.
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.
👍