Repository navigation
feat(node-rewards): second temporary node provider reward reduction cohort - #10965
Merged
pietrodimarco-dfinity merged 2 commits intoJul 30, 2026
Merged
Conversation
…ohort Generalizes the temporary node provider reward reduction added in #10746 from a single hardcoded window to an append-only table of cohorts, each with its own UTC date window, multiplier, and provider set, and adds the second cohort: 50% from 2026-08-01 (inclusive) to 2026-11-01 (exclusive). Membership relative to the first cohort (proposal 142724): * 13 providers are in both cohorts and are therefore reduced continuously from 2026-07-15 to 2026-11-01. * 6 providers have recovered and are absent from the second cohort, so their reduction ends with the first cohort's window on 2026-10-15 and they are rewarded in full from the second half of October on. * 5 providers are newly added: ACCUSET SOLUTIONS, Anonstake, MI Servers, Reist Telecom AG, Starbase. Overlapping cohorts do not compound: the smallest multiplier applicable on a given day wins, so a provider in both 50% cohorts is reduced to 50%, not 25%, on the overlapping days. The first cohort is left untouched, since editing a past cohort would silently rewrite the canister's account of days that have already been minted -- rewards are recomputed from raw metrics on every query, never persisted. The new cohort starts in the future, so no already-minted day is affected. Co-Authored-By: Claude Opus 5 <[email protected]>
Contributor
There was a problem hiding this comment.
Pull request overview
This PR extends the node rewards canister’s temporary node provider reward reduction mechanism from a single hard-coded cohort to an append-only table of cohorts, and adds a second 50% reduction cohort covering 2026-08-01 (inclusive) to 2026-11-01 (exclusive).
Changes:
- Replaces single-window reduction constants with an append-only
REWARD_REDUCTIONScohort table (each with its own UTC window, multiplier, and provider set). - Implements per-provider reduction lookup with “smallest multiplier wins” semantics to avoid compounding on overlapping cohorts.
- Expands/updates unit tests to validate overlap behavior and validate the compiled-in cohort table.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Proposal 142724 established the reward reduction mechanism, not the set of node providers it applies to: each round's cohort and window are set by upgrading this canister, so no further motion proposal is needed to add a round. Drops the TODO asking for a proposal number for the second round and refers to the table entries as rounds rather than as one motion each. Comments and one test name only; no behaviour change. Co-Authored-By: Claude Opus 5 <[email protected]>
Dfinity-Bjoern
marked this pull request as ready for review
July 30, 2026 11:25
Dfinity-Bjoern
requested review from
bjoernek,
pietrodimarco-dfinity and
robin-kunzler
July 30, 2026 11:25
pietrodimarco-dfinity
approved these changes
Jul 30, 2026
pull Bot
pushed a commit
to mikeyhodl/ic
that referenced
this pull request
Aug 12, 2026
…y#11112) ## What The second node provider reward reduction round (added in dfinity#10965 / proposal 143260) was populated from the **July 27 smoke test alone** rather than from the **June 13 + July 27 pair**, so it did not implement the "failed two consecutive drills" rule established by motion 142724. Two providers were affected: | Provider | Jun 13 | Jul 27 | Was | Should be | Why | |---|:--:|:--:|---|---|---| | **MI Servers** (37 nodes) | ✅ in 24h | ❌ no reply | in round 2 | **out** | Replied in time in June — never missed two in a row | | **ParaFi Technologies NS LLC** (37 nodes) |⚠️ late |⚠️ late | absent | **in** | Late in both, and a late reply counts as a failure | Round 2 stays at 18 providers. **Round 1 is unchanged.** ## Why this is safe to edit rather than append The table is append-only precisely because editing a past entry silently rewrites days that have already been minted. That does not apply here: round 2 starts 2026-08-01 and **no day of its window has been minted yet** — the 2026-07-15..2026-08-15 reward period is still open. Nothing already paid out is rewritten. This is also why it is urgent. The next minting is due **on or just after 2026-08-14 12:39 UTC** (governance mints every `ONE_YEAR_SECONDS / 12` = 30.4375 days; last mint was 2026-07-15 02:09 UTC per `get_most_recent_monthly_node_provider_rewards`). After that, MI Servers will have been paid at 50% for the first half of August and cannot be made whole through this table, because multipliers are constrained to `(0, 1)`. ## Duration for the 13 providers in both rounds The 13 providers in both rounds are reduced continuously from 2026-07-15 to 2026-11-01, so 3.5 months rather than three. That is the intended outcome, not an artefact of the overlap: they missed the May 20 + June 13 pair and then missed the June 13 + July 27 pair, and each pair of consecutive misses starts a fresh three-month clock. Round 1's window is therefore deliberately left as it is. This settles the open question raised in dfinity#10965, which asked whether the first round's `end` should instead be shortened so those providers get three months in total. Under a restarting clock it should not, and shortening it would in any case rewrite days that have already been minted. ## Verification against the rule Both rounds were re-derived from the drill results below, independently of the code, and now match it exactly: - **Round 1** = failed 20 May **and** 13 Jun → **19 providers** ✅ matches - **Round 2** = failed 13 Jun **and** 27 Jul → **18 providers** ✅ matches Before this change, round 2 was instead exactly the 27 Jul "no reply" list. ## Full smoke test tracking table All 79 providers that were in the population for at least one drill. A **late (>24h) reply counts as a failure**, same as no reply. ✅ replied in 24h ·⚠️ late · ❌ no reply · – not in that drill's population · ● in that reduction round | Node provider | 20 May | 13 Jun | 27 Jul | R1 | R2 | Nodes | |---|:--:|:--:|:--:|:--:|:--:|--:| | 100 Count Holdings, LLC |⚠️ |⚠️ | ❌ | ● | ● | 28 | | 43rd Big Idea Films | ❌ | ❌ | ❌ | ● | ● | 14 | | 87m Neuron, LLC |⚠️ | ❌ | ✅ | ● | | 42 | | ACCUSET SOLUTIONS | ✅ | ❌ | ❌ | | ● | 10 | | achermann.swiss | ✅ | ❌ | ✅ | | | 1 | | Aitubi AG | ✅ | ✅ | ✅ | | | 1 | | Allusion | ✅ | ✅ | ✅ | | | 37 | | AlpineDC SA | ✅ |⚠️ | ✅ | | | 1 | | Anonstake | ✅ | ❌ | ❌ | | ● | 16 | | ANTHONY ISAAKIDIS | ✅ | ✅ | ✅ | | | 23 | | ANYPOINT PTY LTD | ✅ | ❌ | ✅ | | | 10 | | Arceau NP LLC | ❌ | ❌ | ❌ | ● | ● | 23 | | Artem Horodyskyi | ✅ | ✅ | ✅ | | | 7 | | Avalution AG | ✅ | ❌ | ✅ | | | 1 | | Bianca-Martina Rohner | ✅ | ✅ | ✅ | | | 4 | | Bigger Capital | ✅ | ✅ | ✅ | | | 28 | | Bitmoon | ❌ | ❌ | ❌ | ● | ● | 3 | | Blockchain Development Labs | ✅ | ✅ | ✅ | | | 42 | | Blockchain Innovation Group | ✅ | ✅ | ✅ | | | 1 | | BlockFinance | ✅ | ✅ | ✅ | | | 9 | | BlockTech Ventures, LLC | ❌ | ❌ | ❌ | ● | ● | 28 | | BLP22, LLC |⚠️ | ❌ | ❌ | ● | ● | 14 | | Blue Ant LLC | ❌ | ✅ |⚠️ | | | 37 | | Conic Ventures | ❌ | ❌ | ✅ | ● | | 4 | | CoreLedger | ✅ | ❌ | ✅ | | | 1 | | Decentralized | ✅ | ❌ | ✅ | | | 1 | | Decentralized Entities Foundation | ❌ | ❌ | ❌ | ● | ● | 17 | | Extragone SA | ❌ | ❌ | ❌ | ● | ● | 37 | | Fractal Labs AG | ✅ | ✅ | ✅ | | | 37 | | Geeta Kalwani | ✅ | ✅ | ✅ | | | 4 | | Geodd Pvt Ltd | ✅ | ✅ | ✅ | | | 6 | | GeoNodes LLC | ✅ | ✅ | ✅ | | | 16 | | George Bassadone | ✅ | ✅ | ✅ | | | 25 | | Giant Leaf, LLC | ❌ | ✅ | ✅ | | | 37 | | Honeycomb Capital (Pty) Ltd | ✅ | ✅ | ✅ | | | 12 | | Iancu Aurel | ❌ | ❌ | ❌ | ● | ● | 28 | | Icaria Systems Pty Ltd | ✅ | ✅ | ✅ | | | 18 | | Illusions In Art (Pty) Ltd | ✅ | ✅ | ✅ | | | 6 | | InfoObjects | ❌ | ❌ | ❌ | ● | ● | 4 | | Ivanov Oleksandr | ✅ | ✅ | ✅ | | | 7 | | Karel Frank | ✅ | ✅ | ✅ | | | 18 | | Kontrapunt (Pty) Ltd | ✅ | ✅ | ✅ | | | 6 | | Krishna Enterprises | ✅ |⚠️ | ✅ | | | 15 | | LTIN AG | ✅ | ✅ | ✅ | | | 1 | | Lukas Helebrandt | ✅ | ✅ | ✅ | | | 6 | | Maksym Ishchenko | ✅ | ✅ | ✅ | | | 7 | | Mariano Stoll | ✅ | ✅ | ✅ | | | 4 | | Marvelous Web3 | ✅ | ❌ | ✅ | | | 14 | | MB Patrankos šūvis | ✅ | ✅ | ✅ | | | 10 | | MI Servers **← removed** | ✅ | ✅ | ❌ | | | 37 | | Neptune Partners | ❌ | ❌ | ❌ | ● | ● | 25 | | NODAO | ✅ | ✅ | ✅ | | | 37 | | NOKU SA | ✅ | ❌ | – | | | 1 | | NoviSystems, LLC | ✅ | ✅ | ✅ | | | 3 | | OneSixtyTwo Digital Capital | ✅ | ✅ | ✅ | | | 42 | | Origin Game |⚠️ | ✅ | ✅ | | | 7 | | ParaFi Technologies NS LLC **← added** | ✅ |⚠️ |⚠️ | | ● | 37 | | Pindar Technology Limited | ❌ | ❌ | ✅ | ● | | 36 | | Power Meta Corporation | ❌ | ❌ | ✅ | ● | | 5 | | Privoxy Solutions, LLC | ✅ | ✅ | ✅ | | | 3 | | Protocol16 | ✅ | ✅ | ✅ | | | 23 | | Reist Telecom AG | ✅ | ❌ | ❌ | | ● | 23 | | Rivram Inc | ✅ |⚠️ | ✅ | | | 13 | | senseLAN | ✅ | ✅ | ✅ | | | 1 | | SolNet | ✅ |⚠️ | ✅ | | | 1 | | Starbase | ✅ | ❌ | ❌ | | ● | 38 | | Swiss Datalink AG | ✅ | ❌ | ✅ | | | 1 | | Sygnum Bank | ✅ | ✅ | ✅ | | | 37 | | Tomahawk | ✅ | ✅ | – | | | — | | Uvaca Labs LLC |⚠️ | ✅ |⚠️ | | | 23 | | vestra ICT AG | ✅ | ❌ | ✅ | | | 1 | | Virtual Hive Ltd | ✅ | ✅ | ✅ | | | 23 | | Vladyslav Popov | ✅ | ✅ | ✅ | | | 14 | | Wancloud limited |⚠️ |⚠️ | ✅ | ● | | 10 | | Web3game |⚠️ | ✅ | ✅ | | | 17 | | Wolkboer (Pty) Ltd | ✅ | ✅ | ✅ | | | 6 | | Zarety LLC | ❌ | ❌ | ❌ | ● | ● | 37 | | Zenith Code LLC | ❌ | ❌ | ✅ | ● | | 2 | | Zondax AG | ❌ | ❌ | ❌ | ● | ● | 2 | **Drill participation:** #1 20 May 55/79 · #2 13 Jun 42/79 · #3 27 Jul 56/77. Two providers left the population and are out of scope either way: Tomahawk (left the network; replied in time in both drills it was part of) and NOKU SA (no active nodes on 27 Jul). ## Testing Adds `second_round_follows_the_two_consecutive_misses_rule`, which pins both principals by name. The existing `reward_reduction_round_membership_is_as_intended` only asserts round sizes (19/18/13) — a one-for-one swap passes it unchanged, which is exactly how the original error went unnoticed. - `cargo check -p ic-node-rewards-canister --lib` — clean - `cargo fmt --check` — clean - clippy `--all-targets` with the repo's deny-set — clean - `bazel build //rs/node_rewards/canister:{nrc,nrc-test}` — clean - `bazel test` on all 5 affected targets — **5/5 pass**, 36/36 tests in `nrc_test` 🤖 Generated with [Claude Code](https://claude.com/claude-code) --------- Co-authored-by: Claude Opus 5 <[email protected]> Co-authored-by: Bjoern Assmann <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
Adds a second temporary node provider reward reduction round — 50% from 2026-08-01 (inclusive) to 2026-11-01 (exclusive) — and generalizes the mechanism added in #10746 from a single hardcoded window to an append-only table of rounds.
No new motion proposal is needed: proposal 142724 established the mechanism, not the set of providers it applies to. Each round's cohort and window are set by this canister upgrade.
Provider changes relative to the first round (proposal 142724)
Remain penalized throughout (13) — in both rounds, so reduced continuously from 2026-07-15 to 2026-11-01:
43rd Big Idea Films · 100 Count Holdings · Arceau NP · Bitmoon · BLP22 · BlockTech Ventures · Decentralized Entities Foundation · Extragone SA · Iancu Aurel · InfoObjects · Neptune Partners · Zarety · Zondax AG
Recovered (6) — absent from the new round, so their reduction ends with the first round's window on 2026-10-15 and they are rewarded in full from the second half of October on:
87m Neuron · Conic Ventures · Pindar Technology Limited · Power Meta Corporation · Wancloud limited · Zenith Code LLC
Newly added (5):
cp5ib-twnmx-h4dvd-isef2-tu44u-kb2ka-fise5-m4hta-hnxoq-k45mm-hqekos24-5xact-6aror-uofg2-tnvt6-dq3bk-c2c5z-jtptt-jbqvc-lmegy-qaeizmhk-lpjum-uo4oy-lviba-yctpc-arg4b-2ywim-vgoiu-gqaj2-gskmw-2qema7dp-gz4tg-3c2wv-pgnsv-wna7u-czvhu-fpu47-t4dr6-gzxql-wr2m2-qaesixix-2nyqd-t2k2v-vlsyz-dssko-ls4hl-hyij4-y7mdp-ja6cj-nsmpf-yaeAll principals were resolved against the on-chain
list_node_providers; the 13 carry-over principals are unchanged from #10746.How
REWARD_REDUCTION_START/END/REDUCED_NODE_PROVIDERSare replaced by an append-onlyconst REWARD_REDUCTIONS: &[RewardReduction], where each entry carries its own UTC date window, multiplier, and provider set. Everything else about the mechanism is unchanged: it still runs at the canister boundary right after the versioned algorithm returns itsDailyResults, still scales per-nodeadjusted_rewards_xdr_permyriadand recomputes the provider total from the scaled node values, and still leaves base rewards and the legacy v0 path untouched.Key properties:
startmust not predate the current, not-yet-minted reward period: governance advances its reward period past every day it has minted and never recomputes those days, so a reduction reaching further back would be a no-op in terms of tokens while still claiming a penalty that was never applied. This is documented alongside the table.total_adjusted_rewards_xdr_permyriad(and per-node adjusted) fields.Testing
13 unit tests, all passing. Beyond the tests carried over from #10746:
cargo check --all-targets --all-features, clippy with the repo's-D warningsset,bazel build //rs/node_rewards/canister:{nrc,nrc-test}, and all 5 affected Bazel test targets pass locally.Open question for review
The 13 continuing providers end up penalized for 3.5 months (2026-07-15 → 2026-11-01) rather than a fresh three, because the first round is preserved as-is. If the intent is instead "three months total, ending 2026-11-01" for them, the alternative is shortening the first round's
end— which rewrites already-minted days and is what the append-only rule is there to prevent. Flagging it as a policy call rather than deciding it here.🤖 Generated with Claude Code