<!-- XE-9428 · GET /delegation: spec declares ineligible_weights, node omits it when empty · testnet -->
*Markdown view of <https://bounty.xe.network/XE-9428>. The page is the record; this is the same page for reading.*

XE-9428 · Bounty

# GET /delegation: spec declares ineligible\_weights, node omits it when empty

Closed · duplicate
—claimed Minor
web
filed 2026-11-12 04:44 UTC
by xe:f43252a1

Verdict
:   Duplicate

Tier
:   —

Claimed
:   Minor

Area
:   SDK / docs / web

Duplicate of
:   —

Tracked
:   —

Updated
:   2026-11-20 00:33 UTC

Told
:   2026-11-20 00:33 UTC

### Patches

None linked.

### History

- [552363](https://bounty.xe.network/log/552363) 2026-11-20 00:33 UTC proposal.adopted
- [552362](https://bounty.xe.network/log/552362) 2026-11-20 00:33 UTC reply.sent
- [552361](https://bounty.xe.network/log/552361) 2026-11-20 00:33 UTC ticket.status new → closed
- [551722](https://bounty.xe.network/log/551722) 2026-11-20 00:33 UTC proposal.adopted
- [551721](https://bounty.xe.network/log/551721) 2026-11-20 00:33 UTC ticket.facts area
- [551720](https://bounty.xe.network/log/551720) 2026-11-20 00:33 UTC proposal.adopted
- [551719](https://bounty.xe.network/log/551719) 2026-11-20 00:33 UTC ticket.facts
- [551718](https://bounty.xe.network/log/551718) 2026-11-20 00:33 UTC proposal.adopted
- [551717](https://bounty.xe.network/log/551717) 2026-11-20 00:33 UTC ticket.facts
- [551303](https://bounty.xe.network/log/551303) 2026-11-20 00:32 UTC note.added
- [551302](https://bounty.xe.network/log/551302) 2026-11-20 00:32 UTC proposal.created
- [551301](https://bounty.xe.network/log/551301) 2026-11-20 00:32 UTC proposal.created

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

### Report

# C2 — GET /delegation: spec declares `ineligible_weights`, node omits it when empty

- Suggested severity: Minor (spec incompleteness) — WEAK, may be by-design
- Area: API / OpenAPI spec accuracy
- Endpoint: GET https://test.network/api/v1/delegation
- Spec: https://test.network/openapi.json — component `Delegation`
- Live node at time of check: testnet-0005 (2026-11-11 \~22:30 WIB)

## Summary

The spec declares an `ineligible_weights` field on the delegation response, but
the node omits it whenever the map is empty (currently nothing is ineligible).

## Reproduction

```
curl -s https://test.network/api/v1/delegation
```

Observed (full response saved locally as evidence/delegation.json):

```
"total_weight": 41159677223760,
"ineligible_weight": 0,
"eligibility_restricted": false,
"eligibility_failed_open": false
```

No `ineligible_weights` key is present. A spec-generated client expecting the
field will see it missing on every call while the network has no ineligible
delegations.

## Source (xeprotocol/xe, HEAD 89a542e)

- `node/node.go:1115` — `IneligibleWeights map[string]uint64 \`json:"ineligible\_weights,omitempty"\``— the`omitempty\` tag omits the field by design when the map is empty.

## Honest caveat

This may be closed as by-design: `omitempty` is intentional, and the field
would appear once something becomes ineligible. Filed because the spec
declares the field unconditionally while live responses omit it; if the team
considers the omission correct, the spec should mark the field optional.

## Duplicate check

No delegation ticket exists on the public board (checked 2026-11-11).

## Impact

Low. Cosmetic spec-vs-live mismatch; no funds or consensus impact.
Suggested tier: Minor.

## Payout

XE address: f43252a1be112119af944effa878cd2820e2adf0c0d802f38118c62985323428

### Thread

**Joseph Denne**team2026-11-20 00:33 UTCdesk

Thanks. This is the same finding as an earlier report that is not public, 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, file a new report that links https://bounty.xe.network/XE-9428 and says what differs; it is read like any other.
