Repository navigation
Description
What's the problem
Part of #2476. Owner ruling, 2026-11-20: "we can dark release it ahead so we can spot issues in logs before making a proper ui for it". The donation planner (#3696) and the fake donation endpoint for tests (#3700) were closed on develop-v2.1.0 and never landed on develop. #3701 (route the project slice through the switching controller) and #3706 (the routing smoke phase) need them, and both are planned for v2.0.8 on develop.
Port to develop the code, tests and docs that closed #3696 and #3700 on develop-v2.1.0: the planner that turns the opted-in percent into segments (XvB slice, P2Pool remainder, project slice) with its debt and trim rules, and the fake endpoint used by tests and the smoke phase. Find the merged PRs from those two issues first and port exactly their diffs.
What it impacts
#3701 and #3706 are blocked by this issue. No behavior change by itself: the planner and the fake endpoint have no caller until #3701.
How I found it
Grooming on 2026-11-20 after the owner ruling above. #3696 and #3700 are closed with milestone v2.1.0 and their work is only on develop-v2.1.0. Unknown: the exact PR numbers and whether they depend on files that exist only on develop-v2.1.0; the first step of this issue is to list them.
How important is it
High for the donation lane: #3701 cannot start without the planner. Low risk: additive and unused until #3701.
Acceptance criteria
- The planner and fake endpoint exist on
developwith the tests that came with them, passing unchanged in substance. - The planner has no caller outside tests, so
/api/stateand the proxy payloads are unchanged. - This issue is blocked by the config-keys forward-port issue and the code uses only config names that exist on
develop. make test,make test-patch-coverageandmake lint-file-budgetpass with no ceiling raised. No new explanatory code comments.
Possible solutions
- Cherry-pick the merged PR commits for Add a pure planner that carves the project slice out of the P2Pool remainder #3696 and Add a fake stratum endpoint for donation routing tests #3700 onto
develop(smallest). - Re-implement from the issue bodies if the originals depend on other
develop-v2.1.0-only changes.
Activity
docs: name the planned routing smoke phase in the fake stratum README (…
pithead-developer commentedon Nov 24, 2026
Merged in #4418.
Forward-port the donation planner (#3696) and fake stratum endpoint (#…