poanetwork / poa-ballot-stats

Read POA voting records and rank voters by how many ballots they missed.
GNU Lesser General Public License v3.0
7 stars 6 forks source link

Use VotingKeyChanged events to determine voter set; refactor. #17

Closed afck closed 6 years ago

afck commented 6 years ago

Instead of InitializeChange, which may or may not lead to an actual change of the current voter set later, use VotingKeyChanged to track the set.

Also, check the contract addresses, so only events from the correct instance of the contracts are handled.

The -v option now displays the full lists of participating and abstaining voters for each ballot.

The main logic has been moved to the counter module and refactored a bit.

And the Readme recommends the release binaries, so users don't need to have Cargo installed.

Closes #16, closes #14