-
Notifications
You must be signed in to change notification settings - Fork 217
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
1945: Exclude retired pools from the `ListStakePools` API function result. r=jonathanknowles a=jonathanknowles # Issue Number #1937 # Overview This PR: - [x] Applies a very simple filter to the Shelley `ListStakePools` API operation that excludes all pools with a retirement epoch earlier than or equal to the current epoch. - [x] Adds an integration test to verify that if pool _**p**_ has already retired, it will **not** be listed by `ListStakePools`. # Future Improvements The current pool tracking implementation (which predates this PR) has two potential areas for improvement: - Reducing the number of database queries that need to be executed: See: https://jira.iohk.io/browse/ADP-383 - Performing garbage collection of retired pools from the database: See: https://jira.iohk.io/browse/ADP-376 These are **not** tackled in this PR, but are instead recorded in the above tickets, so that we may schedule time to fix them at a later date. Co-authored-by: Jonathan Knowles <[email protected]>
- Loading branch information
Showing
6 changed files
with
117 additions
and
25 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters