{"id":"XE-0110","kind":"bounty","visibility":"public","source":"github","source_repo":"xeprotocol/xe","source_ref":"166","source_url":"https://github.com/xeprotocol/xe/issues/166","reporter_id":37,"title":"Volume test pre-notice: bounded /accounts full-lattice cost amplification measurement on testnet-0005","area":null,"claimed_tier":null,"assessed_tier":null,"verdict":"notice","duplicate_of":null,"tracked":false,"internal_ref":"","internal_url":"","status":"closed","closed_reason":"answered","github_state":"closed","disclosed_at":null,"award_xe":null,"award_approved":false,"paid_ref":"","created_at":"2026-10-29T13:57:28.545074+00:00","updated_at":"2026-11-14T22:51:19.389236+00:00","source_created_at":"2026-10-29T04:30:37+00:00","told_at":"2026-11-14T22:49:59+00:00","status_changed_at":"2026-11-07T16:13:20.006309+00:00","url":"https://bounty.xe.network/XE-0110","body":"## Volume test pre-notice: bounded `/accounts` full-lattice cost amplification measurement on testnet-0005\n\nPre-notification of a **bounded, single-source, read-only measurement** against the public testnet node, per the Rules on `/bounty`:\n\n> Volume testing against the public testnet nodes is authorized; open an issue before a sustained campaign so we can watch it and attribute the results to you.\n\nThis is a campaign notice, not a bug report and not a claim of a vulnerability.\n\n### Already known and already reported — I am not claiming these\n\n`#70` reports that `GET /accounts` does full-lattice work regardless of `?limit=`. I reproduced it independently:\n\n```\nGET /accounts             -> 200, 2.82s,  26625 bytes\nGET /accounts?limit=1     -> 200, 2.69s,    276 bytes\nGET /accounts?limit=1000  -> 200, 3.48s, 264799 bytes\n```\n\n`limit=1` costs 96% of the default page, confirming the work happens before pagination.\n\n### What this campaign actually measures\n\n`#70` establishes the endpoint is slow. It does not answer whether the cost **amplifies** — whether a single client can consume a disproportionate share of node capacity, and whether that load reaches the consensus path.\n\n1. **Cost stability** — `/accounts` at a fixed rate for a bounded window; latency percentiles, to see whether cost grows with lattice size.\n2. **Concurrency ceiling** — a small number of concurrent `/accounts` requests (bounded, far below anything that could be called a flood). Super-linear degradation from a handful of requests is a different finding from \"the endpoint is slow\".\n3. **Consensus-path interaction** — whether `/accounts` load affects `/health`, `/ready`, or block submission latency on the same node. The program's own tiers distinguish \"measurable slowdown\" (Medium) from \"finality stalled network-wide\" (Severe), so the question is whether read load crosses that line.\n\n### Hard bounds I will not exceed\n\n| Parameter | Bound |\n|---|---|\n| Source | single client, single IP |\n| Endpoints | `GET /accounts`, `GET /health`, `GET /ready`, `GET /supply` only |\n| Concurrency | ≤ 8 in flight |\n| Request rate | ≤ 4 requests/second sustained |\n| Duration | ≤ 10 minutes per run |\n| Total requests | ≤ 2400 per run |\n| Writes | none — read-only, no block submission, no state change |\n\n### Target\n\n`https://ldn.core.test.network` — node `12D3KooWJg4PQYGSfNCupBWZdEWbKj7pgdp5MmmUXbPdBcp6YDtT`, version `xe/16fc1f9`, network `testnet-0005`.\n\n### Test account (self-funded, campaign-controlled)\n\n`425701cced5161806191f9421921766d9590523a2d595df32cb5367dc4477b41` — funded from the faucet, used only to confirm the write path still works after each read-load run. No other account is touched.\n\n### Attribution\n\nHandle: **Nexa Stark** (starknexa@gmail.com). Results posted in this issue with exact request counts, latency percentiles, and the node's own `/supply` conservation state before and after each run.\n\n### If I find nothing\n\nI will close this issue with the measurements attached. A negative result with reproducible numbers is more useful than leaving the cost curve unmeasured.\n\n","patch_refs":[],"thread":[{"id":52,"source":"github","source_ref":"6488346592","author":"nexastark","team":false,"body":"## Volume test complete — results (157 requests, 0 failures, no degradation)\n\nCampaign finished inside the announced bounds (concurrency ≤ 8, ≤ 4 req/s, ~12 min\nactual vs 10 min planned, 157 requests vs the 2400 cap). No state was changed.\n\n### `/accounts` cost vs concurrency (same node, same window)\n\n| Concurrency | Requests | ok | p50 (s) | mean (s) | max (s) |\n|---|---|---|---|---|---|\n| 1 (sequential) | 120 | 120 | 3.542 | 3.571 | 4.013 |\n| 2 | 2 | 2 | 3.499 | 3.519 | 3.539 |\n| 4 | 4 | 4 | 4.316 | 4.232 | 4.373 |\n| 8 | 8 | 8 | 7.151 | 7.197 | 7.490 |\n| 16 (background) | 16 | 16 | 6.507 | 6.336 | 6.766 |\n\nBaseline `/health` for comparison: p50 1.243s, max 1.405s.\n\n### Health under 16× `/accounts` load\n\n| Probe | code | time (s) |\n|---|---|---|\n| `/health` | 200 | 1.111 |\n| `/ready` | 200 | 1.266 |\n| `/supply` | 200 | 1.616 |\n| `/accounts/{addr}/balance` | 200 | 1.335 |\n\n### Reading\n\nLatency grows roughly linearly with concurrency, so the expensive `/accounts` path\nlooks serialised rather than absorbed. This is **resource amplification, not an\noutage**: every request returned 200, and `/health` `/ready` `/supply` stayed fast\nthroughout. I am not claiming a DoS — the underlying \"full lattice regardless of\nlimit\" cause is already reported in #70, and this measurement only quantifies the\nconcurrency curve that #70 does not cover. Attaching it here as a reproduction\nartefact rather than filing it as a separate bug.\n\nRaw data: `volume_results.json` (kept locally; happy to share if useful).\n\nCampaign stopped as planned. No further volume testing from me unless asked.","created_at":"2026-10-29T04:57:23+00:00"},{"id":3249,"source":"github","source_ref":"6885442005","author":"XE desk","team":true,"body":"Thanks for the report. We have read it and answered what it raises.\n\nThis report is closed as answered. If there is more to it, file a new report that links\nhttps://bounty.xe.network/XE-0110; it is read like any other.","created_at":"2026-11-14T22:49:59+00:00"}]}