Bounty
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

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"`— theomitempty` 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 Denneteam2026-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.