Skip to content

Conversation

@teodanciu
Copy link
Contributor

@teodanciu teodanciu commented Sep 29, 2025

Description

Store, in each pool's StakePoolState, the stake credentials that have delegated to that pool.
This set is updated in DELEG rule, for both shelley and conway:

  • on (re)delegation
  • when the stake credential is unregistered

The set is used to improve the performance of removing delegations when retiring the pool.
Based on PR: #5330

Closes: #4990

Checklist

  • Commits in meaningful sequence and with useful messages.
  • Tests added or updated when needed.
  • CHANGELOG.md files updated for packages with externally visible changes.
    NOTE: New section is never added with the code changes. (See RELEASING.md).
  • Versions updated in .cabal and CHANGELOG.md files when necessary, according to the
    versioning process.
  • Version bounds in .cabal files updated when necessary.
    NOTE: If bounds change in a cabal file, that package itself must have a version increase. (See RELEASING.md).
  • Code formatted (use scripts/fourmolize.sh).
  • Cabal files formatted (use scripts/cabal-format.sh).
  • CDDL files are up to date (use scripts/gen-cddl.sh)
  • hie.yaml updated (use scripts/gen-hie.sh).
  • Self-reviewed the diff.

@teodanciu teodanciu force-pushed the td/store-delegs-in-stakepoolstate branch 12 times, most recently from b86f5cb to e358c21 Compare October 2, 2025 16:13
@teodanciu teodanciu force-pushed the td/store-delegs-in-stakepoolstate branch 13 times, most recently from 4dea23b to f44c36b Compare October 10, 2025 19:10
@teodanciu teodanciu changed the title [WIP] - Store delegators in pool state Store delegators in pool state Oct 10, 2025
@teodanciu teodanciu marked this pull request as ready for review October 10, 2025 20:32
@teodanciu teodanciu requested a review from a team as a code owner October 10, 2025 20:32
@teodanciu teodanciu force-pushed the td/store-delegs-in-stakepoolstate branch 2 times, most recently from 7cf8b76 to 47d319c Compare October 15, 2025 12:13
@teodanciu teodanciu force-pushed the td/store-delegs-in-stakepoolstate branch 2 times, most recently from 57b2852 to a75026f Compare October 24, 2025 22:35
@teodanciu
Copy link
Contributor Author

I addressed your suggestions, @lehins - whenever you have time to have another look.

@teodanciu teodanciu force-pushed the td/store-delegs-in-stakepoolstate branch from a75026f to 6cc9851 Compare October 27, 2025 09:32
Copy link
Collaborator

@lehins lehins left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks great!! Thank you for your work!

@teodanciu teodanciu force-pushed the td/store-delegs-in-stakepoolstate branch 6 times, most recently from ea55751 to 5ac7675 Compare October 30, 2025 16:44
@teodanciu teodanciu force-pushed the td/store-delegs-in-stakepoolstate branch from 485541f to 5197446 Compare October 30, 2025 17:26
@teodanciu teodanciu enabled auto-merge October 30, 2025 17:27
@teodanciu teodanciu merged commit 6c24032 into master Oct 30, 2025
120 of 130 checks passed
@teodanciu teodanciu deleted the td/store-delegs-in-stakepoolstate branch October 30, 2025 19:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Improve performance of undelegation when reaping stake pools

3 participants