iotex-election
Collect and process election information from the governance chain (which is Ethereum for now)
Run as a service
- dep ensure --vendor-only
- rm election.db
- go build -o ./bin/server -v ./server
- ./bin/server
Dumper
Build
[foo@bar iotex-election]$ go build -ldflags "-extldflags=-Wl,--allow-multiple-definition" -x -o ./bin/dumper -v ./tools/dumper
Dump votes to csv
[foo@bar iotex-election]$ ./bin/dumper > stats.csv
Run from source
[foo@bar iotex-election]$ go run -ldflags "-extldflags=-Wl,--allow-multiple-definition" tools/dumper/dumper.go > stats.csv
Processor
Build
[foo@bar iotex-election]$ go build -o ./bin/processor -v ./tools/processor
Process votes
[foo@bar iotex-election]$ ./bin/processor
Run from source
[foo@bar iotex-election]$ go run tools/processor/processor.go