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

Release 1.5.20 #397

Merged
merged 36 commits into from
Dec 18, 2019
Merged

Release 1.5.20 #397

merged 36 commits into from
Dec 18, 2019

Conversation

goldworm-icon
Copy link
Member

No description provided.

Chiwon Cho and others added 30 commits November 14, 2019 22:11
* Put NoneRequest to MessageQueue to stop on_send() and on_recv()
* Fix some asyncio errors
* Clean up unused codes from IPCServer
* Fix a minor unittest error
* Update asyncio statements in IconInnerService
…ermination

IS-915: Fix infinite loop on ipc_server termination
- 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()
* Return active P-Reps only
* Remove obsolete methods from PRepContainer
* Add some unittests for PRepEngine.handle_get_prep_term()
…eps-of-getPRepTerm

IS-923: Add P-Rep candidates to the result of getPRepTerm API
…ity-penalty-when-prep-get-block-validation-and-low-productivity-at-the-same-times

IS-932: Impose low productivity penalty when prep get block validation and low productivity penalty at the same time
* Implement getInactivePReps API

- Add get_inactive_preps method on PrepContainer
- Add tests for the API

* Update PRepEngine.handle_get_inactive_preps()

* Optimize the filtering condition in PRepContainer.get_inactive_preps()
* Add "blockHeight" and "totalDelegated" fields to the response of getInactivePReps request
* Update test_handle_get_inactive_preps in prep/test_engine.py
* Change the target prep list to reset the block validation penalty from engine.preps to context.preps
* Change the condition to pick up the P-Reps to reset the block validation penalty
* Rename PRepEngine._release_block_validation_penalty() to PRepEngine._reset_block_validation_penalty()
* Add a unittest to prep/test_engine.py
apply feedback
seperate flag and (Frozen or not)
 - seperate Flag, is_frozen
 - dirty = changed MAIN_SUB PReps  + UPDATE_MAIN_PREPS_ENDPOINT
* Do not use auto() in Revision class
* Rename IS_1_5_15 to FIX_TOTAL_ELECTED_PREP_DELEGATED
* Optimize property setters
* Remove obsolete codes
* Remove voiting_power related codes
* Fix a warning from IDE
* Update unittest for PRep class
* Fix an error on prep/test_engine.py: Term.update_preps ->
Term.update_invalid_elected_preps
* Add OPTIMIZE_DIRTY_PREP_UPDATE to Revision class
* Fix some unittests for p2pEndpoint update
* Divide DIRTY into 3 flags: MAIN_PREPS, SUB_PREPS, MAIN_PREP_P2P_ENDPOINT
* Update PRepEngine._on_term_updated()
* Update test_term.py
…-loopchain-in-term

IS-913: Pass a new main prep list to loopchain when a p2pEndpoint of a main prep is modified
* Deepcopy the return value of score query call to prevent score data corruption
* Add a unittest for global score data corruption
…a-corruption

IS-936: Fix score data corruption on score query call
@goldworm-icon goldworm-icon merged commit 5e1b2e8 into master Dec 18, 2019
@goldworm-icon goldworm-icon deleted the release-1.5.20 branch December 18, 2019 09:09
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.

4 participants