feat(nip77): advertise NIP-77 in NIP-11 and expose its settings in the admin console
维护者通常 1 天内回复
评估
这个 Issue 还没有评估数据。
描述
Is your feature request related to a problem? Please describe.
Relays can now answer NIP-77 sync requests when nip77.enabled is set (#817/#818), but nothing tells clients so. NIP-11 supported_nips does not list 77, so a client or another relay has to open a NEG-OPEN and read the error to find out whether the relay supports negentropy. The nip77 settings can also only be changed by editing the settings file, unlike nip45, nip50 and nip56, which are available in the admin console.
Describe the solution you'd like
- Advertise
77in the NIP-11supported_nipsonly while NIP-77 is actually active (nip77.enabledis true andeventStore.backendispostgres), the same way43is only listed when NIP-43 is enabled. A relay that has it switched off, or that serves another backend, must not claim to support it. - Add the
nip77settings (enabled,maxEventsPerSession,maxSessionsPerConnection,sessionIdleTimeoutMs) to the admin console's guided settings, with validation matchingvalidateSettings(positive integers). - Tests for the NIP-11 output with the feature on, off, and with a different backend, and for the new guided settings entries.
- A final pass over the NIP-77 section of
CONFIGURATION.mdso it matches the shipped behaviour.
Additional context
- Spec: https://github.com/nostr-protocol/nips/blob/master/77.md and NIP-11 (
supported_nips). - Builds on #801 / #809 (reconciliation core) and #817 / #818 (wire protocol and
nip77settings).
- 主要语言
- TypeScript
- 星标
- 829
- 派生
- 234
- 平均合并
- 18 小时 43 分钟
- 30 天内合并 PR
- 67
环境准备
- 提供 Dockerfile 或 Docker Compose 文件
- 有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
cameri/nostream 的其他 Issue
-
Website
难度 2/5 1-3 小时 新手友好度 84/100
维护者通常 1 天内回复
-
难度 5/5 一周以上 新手友好度 25/100
维护者通常 1 天内回复
-
documentation Website
难度 4/5 3-5 天 新手友好度 52/100
维护者通常 1 天内回复
-
fix(website): update operator console film with fresh notifications screenshot可能已有人在做 @Ferryx349 今天认领。 未关闭bug Website
cameri/nostream#893 · 已指派 1 人 ·
维护者通常 1 天内回复
-
难度 5/5 一周以上 新手友好度 25/100
维护者通常 1 天内回复
相似的 Issue
-
"Contains" page watch never matches when its text has a trailing space可能已有人在做 @RaphaelFakhri 今天认领。 未关闭
难度 2/5 1-3 小时 新手友好度 77/100
CopilotKit/openmuse#184 ·
维护者通常 1 天内回复
-
难度 1/5 1 小时以内 新手友好度 88/100
维护者通常 1 天内回复
-
bug
难度 2/5 1-3 小时 新手友好度 67/100
bootstrap-vue-next/bootstrap-vue-next#3357 ·
维护者通常 1 天内回复
-
[quality] tide.ts: six mutation survivors in the merge-queue gate, draft refusal, fork-403 workflow-file diagnosis and getPull's fork flag are unpinned by any test可能已有人在做 @hivecommons-hive 今天认领。 未关闭agent/quality needs-kind stage/040-covered-by-pr testing
难度 2/5 1-3 小时 新手友好度 68/100
cncf/prow-github-actions#517 · 1 条评论 ·
维护者通常 2 天内回复
-
Unsampled pageload span is profiled when profileLifecycle is 'trace' (browser UI profiling)可能已有人在做 @Jxxunnn 今天认领。 未关闭Browser Waiting for: Product Owner
难度 2/5 1-3 小时 新手友好度 82/100
getsentry/sentry-javascript#25497 · 1 条评论 ·
维护者通常 1 天内回复