<!-- XE-2445 · [Minor] Deterministic block rejections return HTTP 503 with retryable:true · testnet -->
*Markdown view of <https://bounty.xe.network/XE-2445>. The page is the record; this is the same page for reading.*

XE-2445 · Bounty

# \[Minor\] Deterministic block rejections return HTTP 503 with retryable:true

Closed · duplicate
—claimed Minor
[xe#319](https://github.com/xeprotocol/xe/issues/319)
filed 2026-11-09 13:53 UTC
by grizelshalom

Verdict
:   Duplicate

Tier
:   —

Claimed
:   Minor

Area
:   Node / API

Duplicate of
:   [XE-0014](https://bounty.xe.network/XE-0014) accepted

Tracked
:   internally

Updated
:   2026-11-16 10:40 UTC

Told
:   2026-11-10 12:19 UTC

### Patches

- [xe#320](https://github.com/xeprotocol/xe/pull/320) open by tipprb
  fix(core,api): classify deterministic block validation failures as non-retryable 400 (#319)

### History

- [80299](https://bounty.xe.network/log/80299) 2026-11-10 12:20 UTC github.state\_pushed
- [80298](https://bounty.xe.network/log/80298) 2026-11-10 12:20 UTC github.labels
- [80242](https://bounty.xe.network/log/80242) 2026-11-10 12:19 UTC reply.mirrored
- [80167](https://bounty.xe.network/log/80167) 2026-11-10 12:19 UTC proposal.adopted
- [80166](https://bounty.xe.network/log/80166) 2026-11-10 12:19 UTC reply.sent
- [80165](https://bounty.xe.network/log/80165) 2026-11-10 12:19 UTC ticket.status new → closed
- [79645](https://bounty.xe.network/log/79645) 2026-11-10 12:19 UTC proposal.adopted
- [79644](https://bounty.xe.network/log/79644) 2026-11-10 12:19 UTC ticket.facts area
- [79643](https://bounty.xe.network/log/79643) 2026-11-10 12:19 UTC proposal.adopted
- [79642](https://bounty.xe.network/log/79642) 2026-11-10 12:19 UTC ticket.facts
- [79641](https://bounty.xe.network/log/79641) 2026-11-10 12:19 UTC proposal.adopted
- [79640](https://bounty.xe.network/log/79640) 2026-11-10 12:19 UTC ticket.facts

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

### Report

Summary:
Several deterministic, permanent block-validation failures are returned as HTTP 503 (Service Unavailable) with "retryable": true, even though resubmitting the identical block will never succeed. Per the API spec, errors should be a JSON object with error.code / error.message / error.hint; these responses carry no code/hint, and the 503/retryable semantics incorrectly signal a transient server problem.

Affected component:

- HTTP API block ingestion (POST /api/v1/blocks/send, POST /api/v1/blocks/receive) on testnet node (https://test.network/api/v1)
- Scope per program: HTTP API

Evidence (reproduced 2026-11-09, testnet-0005):

Case 1 — "previous mismatch" (permanent client error) → 503 \+ retryable:true
Submitting a valid, correctly signed send block whose previous references a hash that is not the account's frontier:
{"error":"block rejected: previous mismatch: block references 3f681f61... but account frontier is 967416ba...","retryable":true}

HTTP status: 503

Case 2 — "source send not pending" → 503 \+ retryable:true
Submitting a receive block whose source send is not pending (e.g. replayed claim, or non-existent source):
{"error":"block rejected: source send not pending: abababababab...","retryable":true}

HTTP status: 503

In both cases the identical block resubmitted later returns the same permanent rejection — the error is not transient. For comparison, correctly-classified permanent errors on the same endpoints return 400 with "retryable": false (e.g. "block rejected: invalid proof of work"), so classification is inconsistent between error paths.

Impact:

1. Incorrect retry semantics: HTTP-aware clients, SDKs, and load balancers treat 503/retryable as transient and will retry with backoff — generating pointless load and "stuck" integrations that loop forever on a permanently invalid block.
2. Monitoring/alerting skew: 503s are typically routed to infrastructure on-call (server health), not to client-side validation bugs.
3. Inconsistent contract: identical severity of error (permanent validation failure) yields 400/retryable:false on some paths and 503/retryable:true on others.

Suggested fix:
Return 400 with retryable: false for deterministic validation failures (previous mismatch, source not pending, conflicts with finalized block), keep 503 only for genuinely transient conditions, and include error.code/error.hint per the documented error schema.

Reproduction:
Any correctly-signed block can be replayed against a stale previous hash:

1. Submit a valid send block (201).
2. Resubmit another valid send block built on an older frontier hash → 503, retryable: true, identical result on every retry.

Full PoC scripts (Python, ed25519 signing \+ canonical v2 encoding) available on request.

Proposed tier: Minor (inconsistent/incorrect API error semantics, no direct economic impact)

Reporter:

- XE address for reward: afdc3f26ac9fabbecdfd4130c0c8990cc3ab367c9c4c1c82cda5ddb4d1d23692
- Only my own accounts were used; no third-party accounts or infrastructure were affected.

---

📍 Address XE : afdc3f26ac9fabbecdfd4130c0c8990cc3ab367c9c4c1c82cda5ddb4d1d23692

### Thread

**grizelshalom**2026-11-09 15:54 UTCgithub

Thanks for the quick fix — I'm the original reporter of #319. The classification
matches my suggested fix exactly (400 \+ retryable:false for deterministic
rejections, 503 reserved for transient conditions).

For the record: reproduced on testnet-0005 on 2026-11-09 via signed blocks
(previous mismatch on POST /blocks/send, source-not-pending on POST
/blocks/receive). Happy to share the full PoC scripts (Python, ed25519 signing \+
canonical v2 encoding) if maintainers need them.

Payout addresses:

- XE L1: afdc3f26ac9fabbecdfd4130c0c8990cc3ab367c9c4c1c82cda5ddb4d1d23692
- Base USDC: 0xba7015ea1de4b84626dbebece3807a21206642ed

**Joseph Denne**team2026-11-10 12:19 UTCgithub

Thanks. This is the same finding as https://bounty.xe.network/XE-0014, which was filed first; the programme pays the
first verifiable submission, so this one closes as a duplicate. If you believe it is a different
bug, reply with what differs and we will look again.
