Repository navigation
Description
What's the problem
#4045 lead from post-reboot logs: after a clean restart Tor reached "Bootstrapped 100%" and logged "32 general-purpose client circuits pending" 12 seconds later. The Tor render runs monerod with out-peers=48 over Tor (config.reference.json monero.out_peers: 48; the clearnet render uses 32) while Tor keeps its default MaxClientCircuitsPending of 32, and Tari and P2Pool onion peers dial on top. A fresh boot already sits at the pending-circuit ceiling, so a slow guard or HSDir hiccup tips the client into the wedge.
What it impacts
Every Tor-only appliance at every boot and every guard rotation; it is the plausible tipping point of the 15 h production wedge.
How I found it
Owner-posted post-reboot Tor logs on #4045 (comment with the 12-second-after-bootstrap reading) and the render values in the repo, verified in build/monero/bitmonero.conf.template and lib/pithead/33-render-env.sh.
How important is it
Release-blocker scope (part of the v2.0.4 guard rails the owner directed 2026-11-12: "circuit cap and SOCKS isolation tuning" in the must-have/should-have plan). Small change, plausibly large prevention value.
Acceptance criteria
- The Tor render no longer allows the client's dial demand to sit at
MaxClientCircuitsPendingby default: either raise it in the Tor config (build/tor/) with documented headroom for monerod + Tari + P2Pool onion dials, or cut monerod's Tor-renderedout-peerstoward 16–24 (keeping 32 for clearnet renders), or both — the chosen values and the arithmetic behind them recorded in the docs. - A tier-1 assertion on the rendered Tor and monerod config files (required, never sufficient).
tier4-e2etargeted proves the stack deploys with the changed templates and monerod and Tor come up healthy and the node syncs — a config template is a stack change.- Payout addresses, ports and the Tor version-pin question (Triage the warnings every appliance logs: silence the noise, fix the config debts, rate-limit retry spam #4047 should-have) are untouched.
Possible solutions
MaxClientCircuitsPending 64(or a value with stated headroom) in the Tor template plusout-peers 24for the Tor monerod render; verify against the wedge signature in the sibling fault-injection chunk once the ladder lands.
Parent: #4045
Worker brief: Test tier: tier4-e2e (targeted). Config guard rail for the Tor pending-circuit ceiling from #4045. Change the rendered config so dial demand cannot sit at the client ceiling at boot: set MaxClientCircuitsPending with stated headroom in build/tor/ and/or render monerod's Tor-routed out-peers at 16–24 (clearnet stays 32) via build/monero/bitmonero.conf.template, lib/pithead/33-render-env.sh and config.reference.json; if a lib/pithead slice changes, rebuild the CLI (scripts/build-pithead.sh) and commit both. Correct the docs that state these values. Tests: extend tests/stack/test-monero-tari.sh and the tor render assertions with exact values (tier-1, required but not sufficient); submit tier4-e2e targeted on the head — the point of that row is the daemons accept the rendered file and the stack syncs. Do not touch payout addresses, ports, Tor version pinning (#4047), or the heal code (sibling chunks). Run make lint-file-budget and make lint-pithead-build before the PR.
Activity
Follow the out_peers default in the allowlist round trip and OS fallb…
Correct the out_peers headroom arithmetic, drop explanatory comments,…
Tor render: raise MaxClientCircuitsPending, lower monero out-peers de…
pithead-developer commentedon Nov 13, 2026
Merged in #4088.
Tor diagnostics snapshot: circuits, consensus, guards, bootstrap and …