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 from f44c36b to db80d70 Compare October 14, 2025 10:02
@teodanciu teodanciu force-pushed the td/store-delegs-in-stakepoolstate branch from 7cf8b76 to 47d319c Compare October 15, 2025 12:13
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

1 participant