relay: SUPPORTED_NIPS omits NIP-45 (COUNT) despite an implemented handler

Open Beginner friendly
#7,432 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
1/5
Estimated time
Under an hour
Newbie friendliness
92/100
Issue type
Bug
Clarity
Clearly specified
Activity status
Active
Tech stack
rust
Domain
api, backend

Research direction

Open crates/buzz-relay/src/nip11.rs and inspect the SUPPORTED_NIPS constant, then compare it with the implemented NIP-45 handler in crates/buzz-relay/src/handlers/count.rs. Add 45 to the advertised list and verify that the NIP-11 response now includes NIP-45 while the existing COUNT endpoints remain unchanged.

Written by the indexing model from the issue text.

Description

What's wrong

`crates/buzz-relay/src/nip11.rs` advertises `SUPPORTED_NIPS = [1,2,10,11,16,17,23,25,29,33,38,42,50,56]` — NIP-45 is not in the list.

But `crates/buzz-relay/src/handlers/count.rs` implements a working NIP-45 COUNT handler (POST /count and the WebSocket COUNT message are both live).

Impact

Clients that check NIP-11 capability advertisement before using COUNT will incorrectly conclude the relay doesn't support it and avoid a working feature.

Fix

Add 45 to SUPPORTED_NIPS in nip11.rs.

Provenance

Found during a documentation-corpus review of launchpad/docs/corpus/platforms/relay/nip-11.md (launchpad-26/buzz PR #1981). Not a documentation bug — the code itself under-advertises its own capability.

Dominant language
Rust
Stars
33.7k
Forks
4.4k
Avg merge
1d 21h
Merged PRs (30d)
239

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from block/buzz

All issues in block/buzz

Similar issues

More Rust issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.