11 Commits

Author SHA1 Message Date
Vanshdeep Singh
4b46d3d87c Problem: method name conclude isn't appropriate
Solution: The `conclude` function isn't actually concluding the election but
check if the election can be concluded or not. So the method name has been
changed to `has_concluded`
2018-08-20 13:50:11 +02:00
Vanshdeep Singh
7cad22d0c6 Problem: No test to check invalid crypto-conditions
Solution: Add test which raises validation error when using unsupported cypto-conditions
2018-08-20 11:02:19 +02:00
Vanshdeep Singh
40a4c78d15 Merge remote-tracking branch 'ssh_upstream/master' into 21/conclude-election 2018-08-17 10:17:09 +02:00
Troy McConaghy
abdd23f5a6 Problem: Source files contain no license info (#2455)
* Problem: Source files contain no license info

Solution: Add comments with SPDX license info to source files

* Python 3 files don't need # -*- coding: utf-8 -*-
2018-08-16 12:31:32 +02:00
Vanshdeep Singh
d2e71eaebc Problem: ValidatorElection.conclude not dependent on height
Solution: Height is an important factor when concluding an election during
replay i.e. fetching the current validator set should be dependent on height
2018-08-15 11:05:08 +02:00
Vanshdeep Singh
b2839668d6 Problem: Election conclusion logic is spread accross multiple files
Solution: Aggregate the logic in ValidatorElection class
2018-08-14 16:44:32 +02:00
Vanshdeep Singh
1d34a172f6 Problem: New validator set stored at every height
Solution: Store new validator set only when its updated
2018-08-08 12:04:43 +02:00
Vanshdeep Singh
ae8f494396 Problem: Validator set not updated upon election conclusion
Solution: Update the validator set tracked by BigchainDB
2018-08-08 11:27:22 +02:00
Vanshdeep Singh
b12856a9df Problem: Cannot conclude validator election
Solution: Gather votes and conclude election when supermajority is achieved
2018-08-07 16:49:50 +02:00
Vanshdeep Singh
1a74afa9cd Problem: Node operator cannot vote on a ValidatorElection (#2428)
* Problem: Node operator cannot vote on a ValidatorElection

Solution: Implement validator election voting spec

* Problem: Incorrent code comments

Solution: Update comments with correct context

* Problem: Delegated vote not casted back to election

Solution: Update test to cast votes back to election id and assert their validity
2018-08-02 11:49:59 +02:00
Vanshdeep Singh
7dcdefc58b Problem: There is no way to add new validators (BEP-21) (#2392).
Solution: Start by integrating the new election spec specifed in BEP-21.
2018-07-27 17:38:24 +02:00