Repository navigation
Description
What's the problem
Owners cannot choose to support the XMRig developers from the dashboard. RigForge already has a per-rig DONATION setting, writable through the control path, but nothing in the new UI shows or sets it. Rigs installed with RigForge's current default donate 1 % without the owner seeing it anywhere.
Owner decisions (2026-10-27):
- The XMRig developer donation is set per rig, in each rig's panel.
- The proxy donation is not offered:
proxy.donate_levelstays 0 and is not shown. - Every donation defaults to 0 %. Owners opt in.
What it impacts
Owners who want to give back to XMRig, the miner their rigs run, and anyone who needs to know where their hashrate goes.
How I found it
- RigForge
config.reference.jsonand README:DONATION, default 1, writable through the control path. - Pithead
docs/configuration.md:proxy.donate_level, default 0. - The XMRig and xmrig-proxy sources: both donate to XMRig's own donation servers, so per-rig and proxy donation pay the same recipient.
- When a rig mines through Pithead's proxy, XMRig sends its donation through that proxy, so per-rig donation adds no direct internet connection from rigs.
- Lowering a built rig's donation is currently ignored until a rebuild (DONATION: default to 0, and make lowering it after install take effect rigforge#602).
How important is it
Medium. It is an owner-requested feature, and it fixes a transparency gap: rigs on the old default donate 1 % silently.
Acceptance criteria
- Per-rig control. Machines › rig › Advanced shows "Support the XMRig developers" with Off, 1 %, 2 % and 5 % (XMRig donates whole percents only). It is not a counted control. It writes the rig's
DONATIONthrough the existing control path, with the normal preview and typed APPLY. The preview shows the share, the time sentence and the daily cost. - Defaults. Rigs Pithead sets up or adopts default to Off (0 %). Adoption shows a rig's current value and never changes it silently.
- Proxy.
proxy.donate_levelstays 0 and is not shown in the UI. It remains an expert config key only. - Unmanaged rigs. Rigs without the control path, and stock XMRig rigs, show their donation read-only, either as the value their API reports or as "unknown". Stock XMRig builds donate at least 1 %. They show no control.
- Truthful value. The panel shows the level XMRig reports, not only the configured one. A rig whose reported level differs from its config shows that mismatch, and until rigforge#602 ships it says "needs a RigForge update to lower".
- Fleet view. Advanced › Earnings shows a read-only line ("XMRig developers: 1 % on 2 of 3 rigs") that links to Machines. The Earnings estimate subtracts each rig's share, weighted by that rig's hashrate. The Overview strip (Sovereign: build the contribution overview and attention summary #2515) shows the combined XMRig portion.
- Time sentence. Under the control: "1 minute in every 100 minutes, roughly 15 minutes a day" (owner, 2026-10-27; same rounding as Donation: settings section in Advanced › Earnings with status, cost and where it goes #3733).
- Docs and tests. Docs cover what the donation is, where it goes, its cost and how to stop it. Tests cover the control, the read-only cases, the mismatch display and the estimate math. No explanatory source comments.
Possible solutions
Reuse the Machines inspector's control-path write for DONATION, and read the effective level from each rig's API (donate_level in XMRig's summary). Depends on p2pool-starter-stack/rigforge#602 for lowering a built rig and for RigForge's 0 % default.
Activity
pithead-developer commentedon Oct 27, 2026
Questions before work continues (answer here, then remove the
questionlabel):Should exact fleet-wide donation require zero-minimum-capable miners, with companion RigForge/appliance changes and the control unavailable when any rig’s donation cannot be verified or normalized, including unmanaged rigs (my default, because setting DONATION to 0 alone cannot satisfy Off or the single-application guarantee)?
pithead-architect commentedon Oct 27, 2026
Escalated to the human operator; the ruling lands in the runner's private question file and the worker resumes from it.
pithead-developer commentedon Oct 27, 2026
The operator has settled the scope: this control governs xmrig-proxy and rigs managed through the RigForge control path. Off means Pithead adds nothing and managed rigs are set to DONATION 0. The single-application guarantee covers that managed set; no companion RigForge or appliance change is required. Unmanaged rigs keep their own donation. The section and preview will say: “N rigs are not managed by Pithead; their own XMRig donation (usually 1 %) still applies on top of this setting.” Their Machines rows will say “own donation: unknown”. The implementation will record this scope in the donation docs and PR description, preserve existing settings until an explicit change, and test mixed managed/unmanaged fixtures.
Blocked on #2513 (PR #3584). The fetched develop-v2.1.0 base is
82644405e416f8239d289b89c448a5543280010c; it still renders the legacy Simple/Advanced/Configuration/Backup shell and has no Sovereign implementation. This issue needs the new Advanced drawer and page contracts, and the standing owner ruling prohibits implementing this control in the current dashboard. The shell owner and independent reviewer/runner must land PR #3584 before implementation can continue.Read-only investigation and scope clarification are complete. No source changes, PR, tests or bench jobs were created; actual fleet donation levels have not been measured. Remaining integration targets are the Advanced Earnings settings (#2530), Overview strip (#2515), Earnings estimates (#2525), Machines disclosure (#2517), and donation docs (#3698). Resume after #2513 lands, then recheck those contracts and obtain the required fleet report through the approved bench queue before changing donation behavior.
pithead-developer commentedon Oct 27, 2026
Blocked on #2513. Recorded the operator’s managed-rig scope and required unmanaged-rig disclosures on #3731. Implementation requires #2513/PR #3584: the current base has no Sovereign shell or Advanced drawer, and the owner prohibits changes to the legacy UI. Resume when the shell lands; no source changes, tests or bench jobs were created.
The runner resumes this issue when that one closes.
pithead-developer commentedon Oct 27, 2026
Two facts for the single-application design, from the XMRig 6.25.0 and xmrig-proxy 6.24.0 sources:
donate.v2.xmrig.com:3333ordonate.ssl.xmrig.com:443; the proxy uses:5555or:8443. With both on, the same hashrate is donated twice. Setting it once at the proxy and setting managed rigs to 0 is the right single mechanism.DONATIONinto XMRig's compiled minimum, so lowering it on a rig built at 1 is silently ignored until a rebuild (DONATION: default to 0, and make lowering it after install take effect rigforge#602). A runtime change through XMRig's HTTP API has the same limit and takes effect only at restart. Until feat(#492): correlate per-rig hashrate to each config version #602 ships, a managed rig built at 1 % cannot be brought to 0 through the control path. Show such rigs as "donates 1 % (needs a RigForge update to change)", and never as 0.[-]Let owners support the XMRig developers from the donation settings[/-][+]Let owners support the XMRig developers from each rig's panel (default off)[/+]pithead-developer commentedon Oct 27, 2026
Owner, 2026-10-27: scope changed. The XMRig developer donation is set per rig (Machines › rig › Advanced); the proxy donation is not offered and stays 0; every donation defaults to 0 %. The body above replaces the fleet-wide proxy design, including the earlier operator answer about applying the proxy level once. Unmanaged rigs are still shown read-only, as that answer said.
12 remaining items
docs: #3731 — name the issue that owns the earnings subtraction
pithead-developer commentedon Nov 2, 2026
Needs an operator action (do it, then remove the
operator-actionlabel):PR #3841 needs an owner-only rewrite of head branch
agent/3757-support-bundle-owner-only-v2.1.0from observed remote headb7e9d2526bfa7d570191cf215c82f85fff3a16c7ontodevelop-v2.0.3before it can merge. Candidate preparation runs locally; its evidence will follow if available. Verify the candidate, target-base SHA, selected commits, check results and prior review coverage before publication. Publish only to the same PR head branch with an explicit lease onb7e9d2526bfa7d570191cf215c82f85fff3a16c7, followed by the base change; if the remote head moved, stop and reassess. Preserve the existing PR discussion and review history; a replacement PR requires explicit owner approval. Keep this issue open; remove only theoperator-actionlabel after verifying publication. The rewritten head needs fresh checks and review, then any required owner approval; old PASS or approval evidence must not be carried to it.pithead-developer commentedon Nov 2, 2026
Candidate preparation for PR #3841 (owner publication still required):
PR #3841 (head branch
agent/3757-support-bundle-owner-only-v2.1.0, observed remote head b7e9d25, base currently develop-v2.1.0) needs an owner-only in-place rewrite onto develop-v2.0.3 before merge. The candidate is ready on the local branchcandidate/3757-support-bundle-owner-only-v2.0.3at 052e269, built on origin/develop-v2.0.3 at ced8501. It holds only this PR's five commits, cherry-picked with -x: 1c7ddf3→5e8117dcd, 5dc501e→c7f8c13c2, 86705cd→86bb49bf6, 3a2048a→c7474268d, b7e9d25→052e26901. The candidate's diff against develop-v2.0.3 is the same 3 files (+80/−3) as the PR's diff against develop-v2.1.0. The lib/pithead and tests/stack hunks are byte-identical. Two commits conflicted, 1c7ddf3 and 86705cd, both in docs/dev/testing-strategy.md. I resolved them by keeping 2.0.3's existingrender-quadletrow (#1217 is still open there) and making only this PR's edit to thesupport-bundlerow. Focused checks on the candidate, run locally:shfmt -i 4 -dis clean on both shell files;shellcheck -S warningon the test file is clean;make lint-pithead-buildpasses (exit 0);FILE_BUDGET_BASE_REF=origin/develop-v2.0.3 make lint-file-budgetpasses (exit 0). selftest-stack-sandbox's "no bare mktemp -d" case passes; its one failure is macOS-only (#2041). The tests/stack/test-unit-helpers.sh fragment, run on this Mac as corroboration only, gives PASS=35 FAIL=0 on the candidate and PASS=30 FAIL=5 with lib/pithead/07-support-bundle.sh reverted to develop-v2.0.3. Earlier review evidence covers only the develop-v2.1.0 heads. GitHub checks were all green at 3a2048a; on b7e9d25 they were still queued or running when I looked; the reviewer's last round on 3a2048a was RETURN, for the PR body and a weak test assertion, both fixed in b7e9d25. None of this carries to the rewritten head. Owner action: push 052e269 toagent/3757-support-bundle-owner-only-v2.1.0with--force-with-lease=agent/3757-support-bundle-owner-only-v2.1.0:b7e9d2526bfa7d570191cf215c82f85fff3a16c7, then change PR #3841's base to develop-v2.0.3. If the remote head is no longer b7e9d25, stop and reassess. Keep the existing PR discussion and review history; a replacement PR needs explicit owner approval. After publishing, the new head needs fresh GitHub checks and a fresh review, then any owner approval required; the PR body's proof section must be updated for the new head and base. I left the published branch, its base and the PR unchanged.dashboard: fix #3731 — per-rig XMRig developer donation control (#3838)
pithead-developer commentedon Nov 6, 2026
Operator: released to the runner (owner 2026-11-06). New work goes to the local Flash-Next model first; Claude only after three local rounds or for sensitive work.
pithead-developer commentedon Nov 9, 2026
Blocked on #3840. Blocked on #3840, which owns the only remaining acceptance criterion this issue can still claim: "The Earnings estimate subtracts each rig's share, weighted by that rig's hashrate." Finished: PR #3838 merged into develop-v2.1.0 as 26778fc and delivered everything #3731 owns directly — the per-rig "Support the XMRig developers" control (Off/1/2/5 %, review step with share, time sentence and daily cost, typed APPLY), the reported-level truth display with the config mismatch state, the read-only and "unknown" cases for unmanaged and stock rigs, the read-only fleet line on Advanced › Earnings from /api/state.xmrig_donation, and docs/donation.md — tiers 1 to 3 green on that head, which is the row its paths (dashboard logic and docs) require. RigForge shipped the 0 % default and post-install lowering (rigforge#602 closed). Why it blocks: #3840 is open and untouched (no comments, no PR), and it is itself gated on the expected-earnings figure existing at all — Earnings still hard-codes "Expected per day: Unavailable", so the subtraction cannot be wired or tested yet. Also still owed per this issue's criteria: the Overview strip showing the combined XMRig portion, owned by #2515 (open, in flight through PR #3790, which already reads xmrig_donation) — listed in depends_on. Unblocks when #3840 lands and #2515's strip lands; at that point this issue needs only a final criteria audit. Operator note: the merged squash commit 26778fc carries "fix #3731", so GitHub will also auto-close this issue when develop-v2.1.0 forwards into develop — consistent with the round-2 review ruling that transferred the two remaining criteria to their own issues, so no action is needed unless the owner wants the issue to stay open until both follow-ups ship. The runner's stale native blockers on this issue (#2513, #2517, #3844) all point at closed issues and can be cleared.
The runner resumes this issue when that one closes.
pithead-architect commentedon Nov 27, 2026
Release regroom (owner request, 2026-11-27): moved from v2.1.0 to v2.1.3. Donation UI follows the dark-released backend (2.0.7/2.0.8) and the Advanced pages; second UI chunk.