Skip to content

Subsume delegations into active-stake#5585

Open
aniketd wants to merge 4 commits intomasterfrom
aniketd/subsume-delegations-into-activestake
Open

Subsume delegations into active-stake#5585
aniketd wants to merge 4 commits intomasterfrom
aniketd/subsume-delegations-into-activestake

Conversation

@aniketd
Copy link
Contributor

@aniketd aniketd commented Feb 19, 2026

Description

Closes #5577

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.

@aniketd aniketd force-pushed the aniketd/subsume-delegations-into-activestake branch 7 times, most recently from ea382c8 to 557033e Compare February 24, 2026 18:55
@aniketd aniketd marked this pull request as ready for review February 24, 2026 18:55
@aniketd aniketd requested a review from a team as a code owner February 24, 2026 18:55
@aniketd aniketd force-pushed the aniketd/subsume-delegations-into-activestake branch from 557033e to 767a164 Compare February 25, 2026 06:17
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.

Very nice! Still needs the usual changelogs and whatnot, but otherwise it is looking good. 💪

@aniketd aniketd force-pushed the aniketd/subsume-delegations-into-activestake branch 6 times, most recently from 8cfed39 to 582680d Compare February 27, 2026 12:55
@aniketd aniketd requested a review from lehins February 27, 2026 13:58
Update the activestake field to hold the delegation along with the stake.
For this, we introduce the StakeWithDelegation type using NonZero Compact
Coin for stake along with the pool Id.

In tests, mkActiveStake combines a stake-only and a delegation-only maps.
Also make epochStateStakeDistrL return ActiveStake.
Update the golden test.
Update cardano-ledger-shelley-test to use ActiveStake.
Update the CBOR codec golden test.
Add HasSimpleRep instance for NonZero (CompactForm Coin).
@aniketd aniketd force-pushed the aniketd/subsume-delegations-into-activestake branch from 582680d to dffe7ac Compare February 27, 2026 14:04
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.

Subsume ssDelegations into ssActiveStake

2 participants