{"id":"XE-13288","kind":"bounty","visibility":"public","source":"github","source_repo":"xeprotocol/xe","source_ref":"433","source_url":"https://github.com/xeprotocol/xe/issues/433","reporter_id":2483,"title":"[net/features.go] M2: LocalFeatures() capped 8 — capability negotiation tidak lengkap","area":"p2p-sync","claimed_tier":null,"assessed_tier":null,"verdict":"invalid","duplicate_of":null,"tracked":false,"internal_ref":"","internal_url":"","status":"closed","closed_reason":"invalid","github_state":"closed","disclosed_at":null,"award_xe":null,"award_approved":false,"paid_ref":"","created_at":"2026-11-14T20:42:07.364875+00:00","updated_at":"2026-11-20T00:51:10.688190+00:00","source_created_at":"2026-11-12T02:51:00+00:00","told_at":"2026-11-20T00:49:19+00:00","status_changed_at":"2026-11-20T00:33:25.696366+00:00","url":"https://bounty.xe.network/XE-13288","body":"## Ringkasan\nFitur yang tidak masuk 8 teratas tidak pernah di-advertise. Peer mungkin miss capability negotiation untuk fitur yang tidak muncul.\n\n## Lokasi\n- File: `net/features.go`\n- Lines: 68-74\n\n## Kode\n```go\nfunc LocalFeatures() []string {\n    f := []string{\n        \"sha256\",\n        \"ed25519\",\n    }\n    if config.PoWType != \"\" {\n        f = append(f, config.PoWType)\n    }\n    if len(f) > maxAdvertisedFeatures {  // maxAdvertisedFeatures = 8\n        f = f[:maxAdvertisedFeatures]\n    }\n    return f\n}\n```\n\n## Impact\nPeer mungkin tidak bisa negotiate fitur yang tidak di-advertise. Capability negotiation tidak lengkap.\n\n## Suggested Fix\n```go\nconst maxAdvertisedFeatures = 32  // naikkan dari 8\n\nfunc LocalFeatures() []string {\n    f := []string{\n        \"sha256\",\n        \"ed25519\",\n    }\n    if config.PoWType != \"\" {\n        f = append(f, config.PoWType)\n    }\n    // tambah fitur lain yang penting\n    if config.SupportedAlgorithms != nil {\n        f = append(f, config.SupportedAlgorithms...)\n    }\n    if len(f) > maxAdvertisedFeatures {\n        f = f[:maxAdvertisedFeatures]\n    }\n    return f\n}\n```\n\nAtau lebih baik: jangan cap, atau cap dengan nilai yang lebih tinggi (misal 128).","patch_refs":[],"thread":[{"id":13352,"source":"github","source_ref":"7026789077","author":"XE desk","team":true,"body":"Thanks for the report. We read it against the code and could not confirm a bug in what it describes.\n\nThis report is closed as invalid. If we have missed something, file a new report that links\nhttps://bounty.xe.network/XE-13288 and says what; it is read like any other.","created_at":"2026-11-20T00:49:19+00:00"}]}