Skip to content

feat(nns): Allow Governance to request rewards from Node Reward canister instead of registry (behind flag) #4693

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 15 commits into from
Apr 9, 2025

Conversation

max-dfinity
Copy link
Contributor

@max-dfinity max-dfinity commented Apr 7, 2025

What

This allows a test version of governance to rely on the new Node Rewards canister to calculate node rewards. In the normal case, it will continue to rely on Registry.

We also fix an issue in the Node Reward canister, where a query was used when an update should have been used. Since this canister is not yet considered "live" and this API endpoint should not yet be relied upon, we are overriding the DIDC_CHECK on backwards compatibility.

Why

This is part of the effort to allow node rewards to be calculated based on useful work.

@github-actions github-actions bot added the feat label Apr 7, 2025
@max-dfinity max-dfinity force-pushed the msum/node-rewards-gov-integration branch from 19394eb to 77a58cf Compare April 8, 2025 18:02
@max-dfinity max-dfinity added the CI_OVERRIDE_DIDC_CHECK Skips the backwards compatibility didc check (explain in PR description why) label Apr 9, 2025
@max-dfinity max-dfinity force-pushed the msum/node-rewards-gov-integration branch from 1d43888 to ad64597 Compare April 9, 2025 17:28
@max-dfinity max-dfinity marked this pull request as ready for review April 9, 2025 17:39
@max-dfinity max-dfinity requested review from a team as code owners April 9, 2025 17:39
Copy link
Contributor

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

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

If this pull request affects the behavior of any canister owned by
the Governance team, remember to update the corresponding
unreleased_changes.md file(s).

To acknowldge this reminder (and unblock the PR), dismiss this
code review by going to the bottom of the pull request page, and
supply one of the following reasons:

  1. Done.

  2. No canister behavior changes.

Copy link
Contributor

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

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

If this pull request affects the behavior of any canister owned by
the Governance team, remember to update the corresponding
unreleased_changes.md file(s).

To acknowldge this reminder (and unblock the PR), dismiss this
code review by going to the bottom of the pull request page, and
supply one of the following reasons:

  1. Done.

  2. No canister behavior changes.

@max-dfinity max-dfinity force-pushed the msum/node-rewards-gov-integration branch from 5ae8a39 to b7f2ebe Compare April 9, 2025 19:02
@max-dfinity max-dfinity added this pull request to the merge queue Apr 9, 2025
Merged via the queue into master with commit 40a9c37 Apr 9, 2025
21 checks passed
@max-dfinity max-dfinity deleted the msum/node-rewards-gov-integration branch April 9, 2025 20:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CI_OVERRIDE_DIDC_CHECK Skips the backwards compatibility didc check (explain in PR description why) @dre feat @nns-team
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants