Skip to content

Conversation

@sandtreader
Copy link
Collaborator

@sandtreader sandtreader commented Dec 2, 2025

Should fix divergence in active stake calculations

Also added special cut-down config to only run core functions, for reward and performance testing

$ cargo run --release -- --config omnibus-rewards.toml

Description

Ensure that when a pool retires, all stake addresses that delegate to it are marked as undelegated. This will affect
the 'active_stake' totals

Related Issue(s)

Related to, but does not fix, #8

How was this tested?

Additional unit test, needs verification against active stake output from Haskell (@shd has the figures)

Checklist

  • [ X] My code builds and passes local tests
  • [ X] I added/updated tests for my changes, where applicable
  • I updated documentation (if applicable)
  • [ X] CI is green for this PR

Impact / Side effects

Reviewer notes / Areas to focus

Fixes #441

Should fix divergence in active stake calculations

Also added special cut-down config to only run core functions, for
reward and performance testing

$ cargo run --release -- --config omnibus-rewards.toml
@sandtreader sandtreader requested review from golddydev and shd December 2, 2025 15:01
Copy link
Collaborator

@shd shd left a comment

Choose a reason for hiding this comment

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

SPDD broadast at epochs 209,210,211 are equal to Haskell node data.

@sandtreader
Copy link
Collaborator Author

sandtreader commented Dec 3, 2025

SPDD broadast at epochs 209,210,211 are equal to Haskell node data.

@shd Great! I take it that was not the case before? Does it then break at 212? We think the rewards paid are correct up to 215.

@sandtreader sandtreader merged commit 24ce298 into main Dec 3, 2025
2 checks passed
@sandtreader sandtreader deleted the prc/rewards-test branch December 3, 2025 15:47
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.

Clear stake delegations to retired pools

5 participants