Skip to content

Mine to a Monero subaddress (--subaddress): the primary-only validation from #250 is no longer required by P2Pool #2484

Open

Description

@VijitSingh97

What's the problem

Parent: #2481 (P2Pool parity tracker).

What

Mine to a Monero subaddress. Upstream: --subaddress Subaddress to mine to. It must belong to the same wallet that was specified with --wallet parameter (docs/COMMAND_LINE.MD); the README's General Considerations say to provide both the primary (4…) and the subaddress (8…).

Today

monero.wallet_address is validated as a 95-character primary address starting with 4 (lib/pithead/28-parse-and-validate-config.sh), and #250 (closed) deliberately rejected subaddresses because P2Pool and XvB both refused them at the time. P2Pool now supports the pair; XvB still keys on the primary address (xvb.donor_id defaults to its first 8 characters), so the two are no longer in conflict.

Why

A dedicated subaddress keeps the mining payout stream separate from the rest of a wallet without a second wallet, which is the privacy advice the P2Pool README gives ("wallet addresses are public on P2Pool").

what it impacts

Impact is not separately established in the existing report; confirm the affected users or behavior.

How I found it

Discovery details are not separately established in the existing report; preserve and verify the evidence already recorded.

how important is it

Importance has not been assessed explicitly; triage must state the priority and its reason.

acceptance criteria

Acceptance is not isolated in the existing report; the agent must identify a testable outcome before implementation.

possible solutions

Proposed shape

Activity

  1. added this to the v2.x - post-GA milestone on Sep 20, 2026
  2. added
    enhancement
    monero
    p2pool
    on Sep 20, 2026
  3. pithead-developer commented on Sep 24, 2026

    @pithead-developer
    Contributor

    Investigation brief (operator pre-read, 2026-09-23)

    still_valid: yes. Current head (p2pool v4.18.1 pinned, build/p2pool/Dockerfile:4) still hard-rejects subaddresses at four independent gates: lib/pithead/28-parse-and-validate-config.sh:59-61, lib/pithead/24-config-wizard.sh:48, lib/pithead/06-doctor.sh:86-97, dashboard/mining_dashboard/web/static/config/configsync.mjs:65-66. No CHANGELOG entry or merged PR touches this since #250/PR#251 (v1.0.3).

    root_cause: #250 (closed) rejected subaddresses because p2pool + XvB both refused them at the time; that verdict is now stale for p2pool. The repo's own vendored p2pool README (docs/research/xvb-delivery-study/data/sources/p2pool-README.md:100) says the pinned p2pool version supports mining to a subaddress via --subaddress alongside --wallet. Nothing renders --subaddress today (lib/pithead/36-quadlet-units.sh:246 only emits --wallet).

    fix_shape (smallest change, additive — primary stays mandatory everywhere): optional monero.subaddress, validated through the existing classifier (lib/pithead/25-address-types.sh already returns subaddress — stop treating that as an error for this field), rendered next to --wallet in 36-quadlet-units.sh:246. Extend payout confirmation (dashboard/.../monero_wallet_client.py:92-114, uses get_transfers with no account/subaddr filtering) and the payout tamper tripwire (lib/pithead/42-control-policy-and-host-checks.sh:107) to cover the pair. Surface on dashboard + Telegram alerts.

    evidence_tier: tier4-e2e required — this is config-rendering + merge-mining payout behavior, both named under "tier follows the path." A tier-1 assertion on the rendered flag is not enough; need an e2e leg proving a coinbase payout to a configured subaddress is actually confirmed.

    rulings_needed:

    1. Does get_transfers with no account_index/subaddr_indices actually catch subaddress-destined payouts? Default: verify on a bench before shipping, don't assume.
    2. Does XvB (keyed on xvb.donor_id) need any change? Default: no — keep it on the primary address.
    3. One PR or split? Default: one PR.

    duplicates_or_blockers: none exact; #1959 (dashboard field editability) is related, not blocking; parent tracker #2481.

    Triage recommendation: MOVE-2.0.x — not a 2.0.0 blocker (no security/data-loss/Tari-fork tie), moderate bounded diff, already correctly milestoned "v2.x - post-GA."

    Verify against the code before relying on this; it was written by an investigator, not the implementer.

  4. added
    operator-action
    on Nov 2, 2026
  5. pithead-developer commented on Nov 2, 2026

    @pithead-developer
    Contributor

    Operator: claimed for an operator-run implementation session (owner request, 2026-11-01). operator-action keeps the automated runner off it until the session's draft PR is reviewed.

  6. pithead-developer commented on Nov 3, 2026

    @pithead-developer
    Contributor

    Operator: draft PR #3912 from the implementation session, held with operator-action for operator review.

  7. removed
    operator-action
    on Nov 6, 2026
  8. pithead-developer commented on Nov 6, 2026

    @pithead-developer
    Contributor

    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.

  9. pithead-developer commented on Nov 7, 2026

    @pithead-developer
    Contributor

    Blocked on #3923. Blocked on #3923. The five required Build image checks fail on the Trivy gate: apt CVE-2026-109518 (HIGH, fixed upstream) hits every image, and the tor image also hits musl-utils (#3929, fix PR #3930). The CVEs are in the base layers, not in this diff. develop-v2.1.0 has no merged fix, so merging the base would not clear them. Finished: the added source comments are removed, the CI test failures are fixed, and every other check on head aa1fdfe is green. The targeted tier4-e2e (jobs 785 and 789) failed only the row tracked in #3913, which I haven't shown is unrelated to this diff. I posted this explanation on the PR. It unblocks when #3923, and #3929 for the tor image, land on develop-v2.1.0. Then merge the base into this branch and re-run the image builds.

    The runner resumes this issue when that one closes.

  10. added
    blocked
    on Nov 7, 2026
  11. removed
    blocked
    on Nov 8, 2026
  12. pithead-developer commented on Nov 8, 2026

    @pithead-developer
    Contributor

    Blocked on #3940. Blocked on #3940, a new issue I filed. #3923 closed through #3926, but that PR merged into develop-v2.0.3, so develop-v2.1.0 (this PR's base) still lacks the fixes. I merged develop-v2.1.0 into the branch (clean) and pushed head df819ba. After that merge, Build image dashboard, monero and p2pool still fail on apt CVE-2026-109518 and zlib CVEs. I only read the dashboard job's log; I assume the monero and p2pool failures are the same Trivy findings. Everything else I saw on this head passed or was still pending. The tor and xmrig-proxy results are unread. The tor musl finding is tracked in #3929, with fix PR #3930. Finished: source comments removed, test failures fixed, base merged, and the targeted tier4-e2e evidence is in the PR body. It unblocks when the fix reaches develop-v2.1.0, by forward-merge or cherry-pick. Then merge the base into this branch again and re-run the image builds. I posted this explanation on the PR.

    The runner resumes this issue when that one closes.

  13. added
    blocked
    on Nov 8, 2026
  14. removed
    blocked
    on Nov 9, 2026
  15. pithead-developer commented on Nov 14, 2026

    @pithead-developer
    Contributor

    Filed privately (pithead-2484.md); it needs an answer there, then remove the question label.

  16. added
    question
    and removed
    question
    on Nov 14, 2026
  17. pithead-developer commented on Nov 14, 2026

    @pithead-developer
    Contributor

    Blocked on p2pool-starter-stack/bench-ci#2505. The subaddress bench proof is blocked on bench-ci#2505, which I filed for the owner's manual infrastructure queue. It asks for one change: supply IT_MONERO_SUBADDRESS as a subaddress of the same test wallet whose IT_MONERO_VIEW_KEY the e2e bench already supplies. Verification is that the prerequisite SKIP of local-pruned-main-subaddress disappears on a dry run. Rollback is to unset the variable. I linked it natively as blocking pithead#2484. I did not take the harness-derives-it route. It would need create_address on a wallet-rpc that already has the same view key, which mutates a wallet the fixture-restore proof checks, before the scenario config can name the address. PR #3912 stays a draft, and its body now says "criterion unmet, waiting on bench-ci#2505". The other rows have run on the PR head: job 598@99c8a5577b974e5886e1ffd0dbfdb14c58f8d337 ran 324 pass, 2 fail, and #4082 owns both red rows. Once the variable is provisioned, I submit the scenario on the then-current head and paste its unedited evidence. The base has moved ahead, so a merge from it will probably be needed first.

    The runner resumes this issue when that one closes.

  18. added
    blocked
    on Nov 14, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    blockedenhancementmonerop2pool

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions