Andreas Fackler
527d407063
Remove two more extern crate statements.
2018-12-17 10:19:01 +01:00
Andreas Fackler
fdb0741ff6
Also show validators with no votes, add check.
...
We now compare the collected keys to the full current validator list before
printing the results.
2018-12-17 10:19:01 +01:00
Andreas Fackler
744c5bda28
Upgrade to Rust 2018, update deps.
2018-12-17 10:19:01 +01:00
Andreas Fackler
a1a98c2026
Support hard fork 2 contracts.
2018-10-15 16:00:10 +02:00
Andreas Fackler
0f11a72e2d
Update dependencies.
2018-09-20 17:19:04 +02:00
Andreas Fackler
6a20b3d91f
Upgrade to Rust stable.
...
Rust 1.29.0 now comes with both rustfmt-preview and clippy-preview
components, so it removes the need for using nightly.
2018-09-20 17:19:04 +02:00
Andreas Fackler
3555598e75
Use VotingKeyChanged events to determine voter set.
...
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.
And the Readme recommends the release binaries, so users don't need to
have Cargo installed.
2018-05-29 12:48:59 +02:00
Andreas Fackler
400d80eb32
Refactor counter module.
2018-05-28 17:09:01 +02:00
Andreas Fackler
de4d5a36b8
Move count_votes into its own module.
2018-05-28 17:09:01 +02:00
Andreas Fackler
9083b15cd8
Add an option for earliest block number.
2018-05-28 10:24:46 +02:00
Andreas Fackler
ec2903d91a
Add a --period option.
...
This allows limiting the time period in which ballots are counted.
Closes #7 .
2018-05-21 13:25:50 +02:00
Andreas Fackler
0846fb73c0
Don't print removed validators.
...
Only show validators for which we can find metadata, i.e. which have not
been removed.
Closes #11 .
2018-05-21 12:41:37 +02:00
Andreas Fackler
fc967e46e3
Use eth_getLogs to work with load-balancing.
...
This doesn't register a new filter on the server and fixes use with
load-balanced servers like https://core.poa.network .
Fixes #4 , fixes #9 , fixes #10 .
2018-05-21 12:06:15 +02:00
Andreas Fackler
2a70cd3998
Update Rust, Clippy, Rustfmt.
...
Clippy 0.0.202 fixes a bug that prevented using it here.
https://github.com/rust-lang-nursery/rust-clippy/issues/2594
2018-05-19 17:13:01 +02:00
Andreas Fackler
9365d8c277
Make macro_use explicit.
2018-05-15 17:38:41 +02:00
Andreas Fackler
83e3d00444
Remove unused LogExt, simplify parse_address.
2018-05-15 17:32:14 +02:00
Andreas Fackler
82ca652cbd
Add a check whether the node is synchronized.
2018-05-10 14:39:37 +02:00
Andreas Fackler
cc46cc7066
Use ethabi-contract for all contracts.
2018-05-10 10:44:07 +02:00
Andreas Fackler
994d0ae202
Use ethabi-contract for VotingToChangeKeys, too.
2018-05-09 17:28:35 +02:00
Andreas Fackler
78f2da0a4a
Use ethabi-contract.
2018-05-09 17:11:25 +02:00
Andreas Fackler
85bb8d26e3
Enable Travis.
2018-05-07 16:00:55 +02:00
Andreas Fackler
7dd3aee48b
Improve logging, add contract files.
2018-05-07 11:22:51 +02:00
Andreas Fackler
c9a7c42b82
Document and update contract addresses.
2018-05-03 09:34:51 +03:00
Andreas Fackler
d77c1edcd0
Make to_block = latest explicit.
2018-04-01 11:09:51 +02:00
Andreas Fackler
1d7a512bce
Show number of ballots, too.
2018-04-01 10:29:39 +02:00
Andreas Fackler
2f20cd0e08
Only print unexpected voter error in verbose mode.
2018-03-31 20:35:57 +02:00
Andreas Fackler
9c3d77130b
Add --contracts argument to read addresses from chain spec.
2018-03-31 20:31:53 +02:00
Andreas Fackler
15dd805aef
Handle InitiateChange events.
2018-03-31 19:37:09 +02:00
Andreas Fackler
79723c1a31
Initial commit.
2018-03-31 18:50:43 +02:00