Proposal ID: 138288
# Upgrade the Node-rewards Canister to Commit e3857ed __Proposer__: pietro.di.marco at dfinity.org __Source code__: [e3857ed56a35a75170e6d93ed98b84c169860f72][new-commit] [new-commit]: https://github.com/dfinity/ic/tree/e3857ed56a35a75170e6d93ed98b84c169860f72 ## Features & Fixes * Add get_node_providers_rewards endpoint, to be used by the Governance to compute performance-based rewards. * Store rewards (including intermediate results) in stable memory for client retrieval. * Add get_node_provider_rewards_calculation endpoint to compute ongoing rewards and fetch historical ones. * Add get_historical_reward_periods endpoint to fetch historical reward periods and the providers rewarded. * Fix rewards calculation algorithm to extrapolate with 0% failure rate node's performance for node providers with no assigned nodes on a given day. ## New Commits ``` $ git log --format="%C(auto) %h %s" 98b37bf4ffd2f46bc968018bb850a9753540877b..e3857ed56a35a75170e6d93ed98b84c169860f72 -- ./rs/node_rewards/canister ./rs/node_rewards ./rs/registry/node_provider_rewards 6fd65a9e53 feat(NRC): Add endpoint to fetch historical rewards (#6495) 4cdc4e66ec feat(NRC): Add rewards calculation endpoint (#6465) f398475d9c feat(NRC): Store rewards distribution in stable mem. (#6302) 7fb60c16d4 chore(nns): Release notes (#6295) e91e2af3ec fix(NRC): Remove limits on number of nodes (#6439) 91b252383a fix(NRC): Consider performance of assigned nodes below limit (#6382) 49d659c29d feat: Unify ic-cdk to v0.18.6 (#6264) eaee8f1c74 feat(NRC): Add get_node_providers_rewards endpoint (#6241) ``` ## Current Version __Current git hash__: 98b37bf4ffd2f46bc968018bb850a9753540877b __Current wasm hash__: 5cb2b88b043007b297a084cfe51820e83df836227b76ae140b897cb25f40e945 ## Verification See the general instructions on [how to verify] proposals like this. A "quick start" guide is provided here. [how to verify]: https://github.com/dfinity/ic/tree/e3857ed56a35a75170e6d93ed98b84c169860f72/rs/nervous_system/docs/proposal_verification.md ### WASM Verification See ["Building the code"][prereqs] for prerequisites. [prereqs]: https://github.com/dfinity/ic/tree/e3857ed56a35a75170e6d93ed98b84c169860f72/README.adoc#building-the-code ``` # 1. Get a copy of the code. git clone git@github.com:dfinity/ic.git cd ic # Or, if you already have a copy of the ic repo, git fetch git checkout e3857ed56a35a75170e6d93ed98b84c169860f72 # 2. Build canisters. ./ci/container/build-ic.sh -c # 3. Fingerprint the result. sha256sum ./artifacts/canisters/node-rewards-canister.wasm.gz ``` This should match `wasm_module_hash` field of this proposal.
Reviewer Comments:
Add a Comment
No comments yet. Be the first to share your thoughts!