Skip to content
This repository has been archived by the owner on Jun 11, 2024. It is now read-only.

Implement afterBlockExecute hook for DPoS module #6722

Closed
3 tasks done
Tracked by #6717
mehmetegemen opened this issue Sep 3, 2021 · 0 comments
Closed
3 tasks done
Tracked by #6717

Implement afterBlockExecute hook for DPoS module #6722

mehmetegemen opened this issue Sep 3, 2021 · 0 comments

Comments

@mehmetegemen
Copy link
Contributor

mehmetegemen commented Sep 3, 2021

Description

Bundle 3 topics from their respective private functions in the hook:

and implement necessary conditionals while implementing these functions(e.g. some portion of the code should work after bootstrap period or at the last block of round). Private functions must use reusable auxilary function that contains the actual logic of the topic.

Also update previousTimestampStore on successful forging and implement anything related to hook that is outside of reusable logic. And add unit tests.

Acceptance Criteria

  • Unit tests must pass

Additional Information

  • Code must use new module APIs and as much as the old DPoS module code
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants