<!-- XE-13389 · [Track 2 pre-notice] Bounded read-volume measurement: GET /pending?limit=1000 on ldn.core.test.network — ~12 min, <= 4 req/s, concurrency <= 8, read-only · testnet -->
*Markdown view of <https://bounty.xe.network/XE-13389>. The page is the record; this is the same page for reading.*

XE-13389 · Bounty

# \[Track 2 pre-notice\] Bounded read-volume measurement: GET /pending?limit\=1000 on ldn.core.test.network — \~12 min, \<\= 4 req/s, concurrency \<\= 8, read-only

Closed · answered
—
[xe#548](https://github.com/xeprotocol/xe/issues/548)
filed 2026-11-13 10:57 UTC
by Batozar1998

Verdict
:   Notice

Tier
:   —

Claimed
:   —

Area
:   Ops / testnet

Duplicate of
:   —

Tracked
:   —

Updated
:   2026-11-20 13:19 UTC

Told
:   2026-11-20 13:19 UTC

### Patches

None linked.

### History

- [600766](https://bounty.xe.network/log/600766) 2026-11-20 13:19 UTC reply.mirrored
- [600711](https://bounty.xe.network/log/600711) 2026-11-20 13:19 UTC reply.sent
- [600384](https://bounty.xe.network/log/600384) 2026-11-20 13:04 UTC github.state\_pushed
- [600382](https://bounty.xe.network/log/600382) 2026-11-20 13:04 UTC github.labels
- [599864](https://bounty.xe.network/log/599864) 2026-11-20 13:03 UTC proposal.adopted
- [599632](https://bounty.xe.network/log/599632) 2026-11-20 13:03 UTC proposal.adopted
- [599631](https://bounty.xe.network/log/599631) 2026-11-20 13:03 UTC ticket.status new → closed
- [599295](https://bounty.xe.network/log/599295) 2026-11-20 13:03 UTC proposal.adopted
- [599294](https://bounty.xe.network/log/599294) 2026-11-20 13:03 UTC ticket.facts area
- [599293](https://bounty.xe.network/log/599293) 2026-11-20 13:03 UTC proposal.adopted
- [599292](https://bounty.xe.network/log/599292) 2026-11-20 13:03 UTC ticket.facts
- [590145](https://bounty.xe.network/log/590145) 2026-11-20 10:11 UTC note.added

[Full history](https://bounty.xe.network/log?ref=XE-13389) · [JSON](https://bounty.xe.network/v1/tickets/XE-13389) · [markdown](https://bounty.xe.network/XE-13389.md)

### Report

### Run window

Friday 2026-11-13, 18:30–18:45 WIB (11:30–11:45 UTC). \~12 min.

### What I plan to measure

Following the XE-3345 precedent (sustained single-chain send volume at \~1.1 tx/s; finality tail latency tripled, Medium), I will measure a different, unmeasured surface: sustained reads against the global GET /pending endpoint.
Mechanism (node HEAD 89a542e, repo/api/handler.go):

- handleGetAllPending (line 622\) paginates GetAllPending() — which materialises ALL pending sends from the store on every call (361,421 at baseline) — then enrichPending() (line 555\) performs one GetBlock(SendHash) lookup per returned entry (up to limit; default 100, max 1000). One request at limit\=1000 therefore costs \~1000 block lookups plus a full 361k-row materialisation.
- The read rate limiter allows 200 req/s (burst 1000\) per IP (handler.go:296); the planned 4 req/s is 2% of that limit.

### Why this surface (duplicate check, 2026-11-13)

- No prior Track 2 volume measurement of any /pending endpoint exists on the board. The only Track 2 ticket is XE-3345 (send volume).
- Related tickets are static findings, not measurements:
  - XE-5753 (New, Medium): GET /pending/{address} has no pagination and does one block lookup per entry — the per-address mechanism. Not a volume measurement, and a different route from the global endpoint.
  - XE-0058 (Accepted): /pending returns only 100 items while the spec promises all — a docs discrepancy.
  - XE-0893 (Triaging): supply census counts unclaimable pending sends — an accounting issue.
- Alternatives considered and rejected:
  - GET /pending/{address}: the fattest destination in a 1000-entry live sample held only 14 pending entries (\~14 lookups/request) — too weak to move latency/finality measurably.
  - Chat SSE fan-out: XE-0027 (Accepted) already establishes chat starvation is not achievable.
  - Directory registration rate: a write endpoint, and XE-0006 (patched Severe) makes live re-testing of that path out of scope.

### Bounds (binding for this run)

- Single source (one machine, one IP).
- Read-only GET endpoints only: /pending?limit\=1000 (the load) and /ready \+ /supply (monitoring snapshots). No POSTs, no writes, no accounts, no faucet, no funds, no state change of any kind.
- Concurrency \<\= 8, rate \<\= 4 req/s, duration \~12 min (\~2,880 requests).
- Target node only: https://ldn.core.test.network
  - peer id: 12D3KooWJg4PQYGSfNCupBWZdEWbKj7pgdp5MmmUXbPdBcp6YDtT
  - address: a06e32c72e3b744e946ee13e797edefeed45c51354bf10499e73b1cff8582f95
  - version xe/3019b76, network testnet-0005, 9 peers at baseline.
- NOT targeted: nginx/DNS/faucet/hosting layer, any other node, mainnet (does not exist yet), any other reporter's data.
- Stop rules: abort on 5 consecutive request timeouts / HTTP 5xx, or if /ready becomes unreachable. A finality stall is the measured outcome (not an abort trigger) unless the node stops answering entirely.

### Quiet baseline (preliminary, taken 2026-11-13, n \= 5 \+ 1 probe)

- GET /pending?limit\=1000: 200 every time; min 1.160s, p50 1.426s, p95 1.876s, max 1.876s, mean 1.432s; 1000 entries, 295 KB per response.
- GET /ready: status ready, ready: true, finality\_advancing: ok, finality\_stall\_seconds 4.7s then 29.0s across two snapshots minutes apart (it fluctuates naturally — the campaign will take a fresh baseline immediately before the load phase and compare distributions, not single samples), finality\_advances 5824 -\> 5834, unfinalized\_positions 9-10, peer\_count 9\. Stall threshold is 90s (observability.go).
- GET /supply: pending 361,421; XE conserved: true, discrepancy: 0; accounts 35,245; blocks 927,384.
- Note: a single quiet /pending?limit\=1000 already costs \~1.2-1.9s — the endpoint is expensive even unloaded, which is the hypothesis under test.

### Run plan

1. File this pre-notice (this issue) and honour the announced window.
2. Fresh quiet baseline immediately before the run (10 samples of /pending?limit\=1000 \+ /ready \+ /supply).
3. Sustained load inside the bounds above (\~12 min).
4. /ready sampled every 30s during the run; /supply before/after.
5. Results posted in this issue: request counts, latency percentiles (quiet vs under-load), errors, /ready before/during/after (finality\_advancing, finality\_stall\_seconds), /supply conservation state before/after.
6. If a reproducible finality stall appears, it will be reported on the bounty desk as a separate finding (Severe per the Track 2 rules); a measurable slowdown without a stall follows the XE-3345 Medium precedent. If nothing moves, the negative result is posted here too.

### Thread

**Batozar1998**2026-11-13 12:01 UTCgithub

Update: the first run (18:30-18:45 WIB) did not complete — our measurement script hit a queue-drain bug under load and was stopped by its execution cap before writing any results, so no data was collected and no verdict was produced. The bug is fixed (queued requests are now cancelled at the stop time, bounding the run to \~13 min).

Re-run window: Friday 2026-11-13, 19:30-19:45 WIB (12:30-12:45 UTC).

Same bounds as the original notice: read-only GETs against https://ldn.core.test.network only — GET /pending?limit\=1000 (load) plus /ready and /supply monitoring snapshots; single source, concurrency ≤ 8, rate ≤ 4 req/s, \~12 min. No writes, no accounts, no faucet, no mainnet.

**Batozar1998**2026-11-13 12:59 UTCgithub

Update: the 19:30-19:45 WIB re-run did not complete — the scheduled run started late and hit its execution cap before the load finished, so no load was sustained and there are no results to report from it.

New window: Friday 2026-11-13, 20:30-21:00 WIB (13:30-14:00 UTC). Same bounded load as before: GET /pending?limit\=1000 on the ldn testnet node, 4 req/s, concurrency 8, about 12 minutes. No other endpoints, testnet only, no mainnet.

**XE desk**team2026-11-20 13:19 UTCgithub

Thanks for the report. We have read it and answered what it raises.

This report is closed as answered. If there is more to it, file a new report that links
https://bounty.xe.network/XE-13389; it is read like any other.
