<!-- XE-13288 · [net/features.go] M2: LocalFeatures() capped 8 — capability negotiation tidak lengkap · testnet -->
*Markdown view of <https://bounty.xe.network/XE-13288>. The page is the record; this is the same page for reading.*

XE-13288 · Bounty

# \[net/features.go\] M2: LocalFeatures() capped 8 — capability negotiation tidak lengkap

Closed · invalid
—
[xe#433](https://github.com/xeprotocol/xe/issues/433)
filed 2026-11-12 02:51 UTC
by wahyu20260100233-ops

Verdict
:   Invalid

Tier
:   —

Claimed
:   —

Area
:   P2P / sync

Duplicate of
:   —

Tracked
:   —

Updated
:   2026-11-20 00:51 UTC

Told
:   2026-11-20 00:49 UTC

### Patches

None linked.

### History

- [557231](https://bounty.xe.network/log/557231) 2026-11-20 00:49 UTC reply.mirrored
- [557051](https://bounty.xe.network/log/557051) 2026-11-20 00:48 UTC reply.sent
- [554758](https://bounty.xe.network/log/554758) 2026-11-20 00:37 UTC github.state\_pushed
- [554749](https://bounty.xe.network/log/554749) 2026-11-20 00:37 UTC github.labels
- [553324](https://bounty.xe.network/log/553324) 2026-11-20 00:33 UTC proposal.adopted
- [553105](https://bounty.xe.network/log/553105) 2026-11-20 00:33 UTC proposal.adopted
- [553104](https://bounty.xe.network/log/553104) 2026-11-20 00:33 UTC ticket.status new → closed
- [552480](https://bounty.xe.network/log/552480) 2026-11-20 00:33 UTC proposal.adopted
- [552479](https://bounty.xe.network/log/552479) 2026-11-20 00:33 UTC ticket.facts area
- [552475](https://bounty.xe.network/log/552475) 2026-11-20 00:33 UTC proposal.adopted
- [552474](https://bounty.xe.network/log/552474) 2026-11-20 00:33 UTC ticket.facts
- [551163](https://bounty.xe.network/log/551163) 2026-11-20 00:31 UTC note.added

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

### Report

## Ringkasan

Fitur yang tidak masuk 8 teratas tidak pernah di-advertise. Peer mungkin miss capability negotiation untuk fitur yang tidak muncul.

## Lokasi

- File: `net/features.go`
- Lines: 68-74

## Kode

```
func LocalFeatures() []string {
    f := []string{
        "sha256",
        "ed25519",
    }
    if config.PoWType != "" {
        f = append(f, config.PoWType)
    }
    if len(f) > maxAdvertisedFeatures {  // maxAdvertisedFeatures = 8
        f = f[:maxAdvertisedFeatures]
    }
    return f
}
```

## Impact

Peer mungkin tidak bisa negotiate fitur yang tidak di-advertise. Capability negotiation tidak lengkap.

## Suggested Fix

```
const maxAdvertisedFeatures = 32  // naikkan dari 8

func LocalFeatures() []string {
    f := []string{
        "sha256",
        "ed25519",
    }
    if config.PoWType != "" {
        f = append(f, config.PoWType)
    }
    // tambah fitur lain yang penting
    if config.SupportedAlgorithms != nil {
        f = append(f, config.SupportedAlgorithms...)
    }
    if len(f) > maxAdvertisedFeatures {
        f = f[:maxAdvertisedFeatures]
    }
    return f
}
```

Atau lebih baik: jangan cap, atau cap dengan nilai yang lebih tinggi (misal 128).

### Thread

**XE desk**team2026-11-20 00:49 UTCgithub

Thanks for the report. We read it against the code and could not confirm a bug in what it describes.

This report is closed as invalid. If we have missed something, file a new report that links
https://bounty.xe.network/XE-13288 and says what; it is read like any other.
