Skip to content
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

Re-add ability to gather penalties for all validators #2

Merged
merged 3 commits into from
Nov 30, 2021

Conversation

kellybyrd
Copy link

This is a re-implementation of 21b8d99
after the switch to JSON-RPC:

Add an envvar (defaults to off) that will gather penalties for
all validators from the ledger.

Unlike the previous version, this one does not exclude the 0 penalty
validators.

This is a re-implementation of 21b8d99
after the switch to JSON-RPC:

Add an envvar (defaults to off) that will gather penalties for
all validators from the ledger.

Unlike the previous version, this one does not exclude the 0 penalty
validators.
@kellybyrd
Copy link
Author

@PaulVMo I did this REALLY quick and need to step away for a bit. It appeared to work for at least one case, but I haven't tested it well. I'll do that later.

miner_exporter.py Show resolved Hide resolved
miner_exporter.py Show resolved Hide resolved
@PaulVMo
Copy link
Owner

PaulVMo commented Nov 30, 2021 via email

kellybyrd and others added 2 commits November 30, 2021 07:44
1) Remove use of this_validator completely. This makes things a bit
cleaner.

2) In the ALL_PENALTIES case, filter for only staked validator
@PaulVMo PaulVMo merged commit 5c487ff into PaulVMo:main Nov 30, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants