Bounty
XE-13267 · Bounty

[pre-notice] Bounded direct-node read rate-limit characterization on testnet-0005 (ldn vs proxy, read-only)

Closed · answered — xe#404 filed 2026-11-11 19:41 UTC by Nughair

Report

Pre-notice (advance notice): bounded direct-node read rate-limit characterization on testnet-0005

Type: Pre-notice / advance notice for a bounded resilience measurement (required by the programme before any load testing). Network: testnet-0005 (public testnet only — no mainnet). Reporter XE payout address: 2dda1e8cead608801ed02791123da1e11bfc2b90862d68b2954e2995b7f57b18 Accounts used: only my own two research wallets; the rate characterization itself is read-only (public GETs).

Why I'm posting this first

I am a good-faith bounty participant. The programme asks for a report to be filed before any sustained/volume testing. This notice describes a small, bounded, read-only measurement before I run it, so the team can watch and attribute the traffic, and tell me to stop or adjust.

Background observation (single requests only, no load yet)

The HTTP proxy at https://test.network/api/v1 returns standard RateLimit / RateLimit-Policy / RateLimit-Remaining headers (read policy q=1000;w=5). The direct public core nodes — ldn/ffm/nyc.core.test.network — return the same JSON for reads but omit all RateLimit-* headers. Reading the node source (api/handler.go, rateLimitMiddleware + newRateLimiters), the node does run an in-process per-IP token-bucket limiter (read 200 req/s, burst 1000; it just never emits headers — the headers are added by the proxy tier). I want to measure whether that in-process limiter is actually enforced on the direct nodes, i.e. whether a single client is silently capped at ~200 req/s (burst 1000) or can exceed the documented policy against a header-less direct node.

Exactly what I plan to run (only if you don't object)

  • Target: one public direct core node (ldn.core.test.network) and the proxy for comparison. Read-only GET /node and GET /accounts/{own-addr}/balance.
  • Shape: short calibrated bursts, ramping offered read rate (e.g. ~50 → ~1500 req/s) in bursts of ≤5 seconds each, with pauses between. Honoring any 429 / Retry-After immediately.
  • Budget: a few thousand GET requests total over a few minutes, from a single machine/IP, off-peak. No writes, no block submission, no pending-send creation, nothing that grows node state.
  • Metrics recorded: per-request latency, accepted vs 429 counts and the offered-vs-served rate, plus GET /node resilience counters before/after (dropped_blocks, last_finality_ns, finality_advances, pending_sends, peer_count).
  • Safety: I stop immediately on any sign of node distress, on any 429 storm beyond a brief characterization, or at the first hint of collateral impact on other testnet users, and on any request from the team here.

Expected outcome / honesty note

Based on the source, I expect the direct node does enforce ~200 req/s (burst 1000) per IP and simply omits the standardized headers — in which case there is no bypass, just a cosmetic header-parity gap, and I will report that negative result. If the measurement instead shows a single IP sustaining far above policy on a direct node, I will report it with numbers as a rate-limit/service-degradation candidate. Either way I will post the numbers.

I am aware of the existing rate-limiter issues (#47, #81, #172, #396) and the pending-state issue (#384); this notice is scoped to the direct-node header-less read-limit enforcement question specifically and I will fold/withdraw if the team considers it covered.

Please reply if you would like me to change scope, timing, or to not run it. Thank you.

Thread

XE deskteam2026-11-20 00:24 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-13267; it is read like any other.