Skip to content
This repository has been archived by the owner on Dec 15, 2021. It is now read-only.

IS-923: Add P-Rep candidates to the result of getPRepTerm API #389

Merged
merged 4 commits into from
Nov 28, 2019

Conversation

boyeon555
Copy link
Contributor

  • Add get_inactive_preps on PrepContainer to return inactive P-Rep list sorted by penalty value and delegated amount

- Add get_inactive_preps on PrepContainer to return inactive P-Rep list sorted by penalty value and delegated amount
- Modified inactive prep logic to check if prep status is not active or penalty reason is block validation
* Change inactive P-Reps sorting order: (penalty, delegated) -> name
* Move inactive P-Reps sorting code to PRepEngine.get_prep_term()
* Update the unittest for get_prep_term()
@goldworm-icon goldworm-icon self-assigned this Nov 27, 2019
* Return active P-Reps only
* Remove obsolete methods from PRepContainer
* Add some unittests for PRepEngine.handle_get_prep_term()
@goldworm-icon goldworm-icon assigned boyeon555 and unassigned boyeon555 Nov 27, 2019
@boyeon555 boyeon555 merged commit 02512b0 into develop Nov 28, 2019
@goldworm-icon goldworm-icon deleted the IS-923-add-candidates-to-preps-of-getPRepTerm branch November 28, 2019 07:47
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants