You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jun 11, 2024. It is now read-only.
Create a private function in the DPoS module for afterBlockExecute hook to use it and implement the logic in an auxiliary function that is reusable and call it in that private function. Also create constants, adjust interfaces and add tests. Also adjust other auxiliary functions that this function going to use for new interfaces.
In this function the logic is about updating validator list with randomSeed that we get from randomAPI and setting BFT parameters with BFT API. See old code for the responsibility of the code and LIP for new adjustments needed to be done to use new modules.
Acceptance Criteria
Unit tests must pass
Additional Information
Code must use new module APIs and as much as the old DPoS module code
Description
Create a private function in the DPoS module for
afterBlockExecute
hook to use it and implement the logic in an auxiliary function that is reusable and call it in that private function. Also create constants, adjust interfaces and add tests. Also adjust other auxiliary functions that this function going to use for new interfaces.In this function the logic is about updating validator list with randomSeed that we get from randomAPI and setting BFT parameters with BFT API. See old code for the responsibility of the code and LIP for new adjustments needed to be done to use new modules.
Acceptance Criteria
Additional Information
The text was updated successfully, but these errors were encountered: