{"id":"XE-9428","kind":"bounty","visibility":"public","source":"web","source_repo":"","source_ref":"","source_url":"","reporter_id":1729,"title":"GET /delegation: spec declares ineligible_weights, node omits it when empty","area":"sdk-docs-web","claimed_tier":"minor","assessed_tier":null,"verdict":"duplicate","duplicate_of":null,"tracked":false,"internal_ref":"","internal_url":"","status":"closed","closed_reason":"duplicate","github_state":"","disclosed_at":null,"award_xe":null,"award_approved":false,"paid_ref":"","created_at":"2026-11-12T04:44:47.634047+00:00","updated_at":"2026-11-20T00:33:17.989817+00:00","source_created_at":null,"told_at":"2026-11-20T00:33:18.003532+00:00","status_changed_at":"2026-11-20T00:33:17.996283+00:00","url":"https://bounty.xe.network/XE-9428","body":"# C2 — GET /delegation: spec declares `ineligible_weights`, node omits it when empty\n\n- Suggested severity: Minor (spec incompleteness) — WEAK, may be by-design\n- Area: API / OpenAPI spec accuracy\n- Endpoint: GET https://test.network/api/v1/delegation\n- Spec: https://test.network/openapi.json — component `Delegation`\n- Live node at time of check: testnet-0005 (2026-11-11 ~22:30 WIB)\n\n## Summary\nThe spec declares an `ineligible_weights` field on the delegation response, but\nthe node omits it whenever the map is empty (currently nothing is ineligible).\n\n## Reproduction\n```\ncurl -s https://test.network/api/v1/delegation\n```\nObserved (full response saved locally as evidence/delegation.json):\n```json\n\"total_weight\": 41159677223760,\n\"ineligible_weight\": 0,\n\"eligibility_restricted\": false,\n\"eligibility_failed_open\": false\n```\nNo `ineligible_weights` key is present. A spec-generated client expecting the\nfield will see it missing on every call while the network has no ineligible\ndelegations.\n\n## Source (xeprotocol/xe, HEAD 89a542e)\n- `node/node.go:1115` — `IneligibleWeights map[string]uint64 \\`json:\"ineligible_weights,omitempty\"\\``\n  — the `omitempty` tag omits the field by design when the map is empty.\n\n## Honest caveat\nThis may be closed as by-design: `omitempty` is intentional, and the field\nwould appear once something becomes ineligible. Filed because the spec\ndeclares the field unconditionally while live responses omit it; if the team\nconsiders the omission correct, the spec should mark the field optional.\n\n## Duplicate check\nNo delegation ticket exists on the public board (checked 2026-11-11).\n\n## Impact\nLow. Cosmetic spec-vs-live mismatch; no funds or consensus impact.\nSuggested tier: Minor.\n\n## Payout\nXE address: f43252a1be112119af944effa878cd2820e2adf0c0d802f38118c62985323428","patch_refs":[],"thread":[{"id":13199,"source":"desk","source_ref":"reply:11221","author":"Joseph Denne","team":true,"body":"Thanks. This is the same finding as an earlier report that is not public, which was filed first; the programme pays the\nfirst verifiable submission, so this one closes as a duplicate. If you believe it is a different\nbug, file a new report that links https://bounty.xe.network/XE-9428 and says what differs; it is read like any other.","created_at":"2026-11-20T00:33:17.989817+00:00"}]}