-
Notifications
You must be signed in to change notification settings - Fork 6
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
Statistics of ballots #9
Comments
Solid reasoning. Provides visibility for all Token Holders. Good idea! |
I gave it a try, but it's still work in progress: It collects However, I couldn't find any For now, it just starts with an empty set and acts surprised (prints an error) whenever it encounters a vote by someone it doesn't know yet. |
Implemented by Andreas here https://github.com/poanetwork/poa-ballot-stats |
Implemented a very simple C#/.NET CORE ballot stats tool to show validator yes/no votes for transparency on individual ballots here: https://github.com/ajkagy/POA-Tools |
Title
Abstract
In order to further evaluate responsibilities of validators, we have to see how they participate in ballots.
Specification
Every ballot emitts an event called
https://github.com/poanetwork/poa-network-consensus-contracts/blob/master/contracts/VotingToChangeKeys.sol#L93
with their Id, type and creator of the ballot.
Later on for every vote on the ballot there is Vote event
https://github.com/poanetwork/poa-network-consensus-contracts/blob/master/contracts/VotingToChangeKeys.sol#L43
with their
id - is ballot id,
decision - is the choice of the ballot (yes/no) 1 - is yes, 2 is no
https://github.com/poanetwork/poa-network-consensus-contracts/blob/master/contracts/VotingToChangeKeys.sol#L13
voter - is the address of voter (voting_key).
Implementation
We would like to see an app where you can see statistics per mining key of the participation in ballots.
How to do it:
getVotingKeyByMiningKey
method from ValidatorMetadata contracthttps://github.com/poanetwork/poa-network-consensus-contracts/blob/master/contracts/ValidatorMetadata.sol#L214
The text was updated successfully, but these errors were encountered: