Files
ngit-grasp/nix
DanConwayDev 99adfcbf66 fix(relay): preserve completed ID query delivery for clients
The SDK sends CLOSED immediately after EOSE for completed ID filters.
That triggers a cancellation race in nak 0.20.6: 39 of 45 production
lookups returned no event although raw queries received every response.

Pin the upstream SDK fixes and disable its automatic completed-ID closure.
Clients retain ordinary CLOSE ownership. The SDK also fixes its aggregate
query cap, so configure that cap as 20 per-filter pages to preserve our
existing documented multi-filter limit instead of truncating history.
Keep shared Nostr types on one Git source and update all flake packages
and the NixOS module with the verified source hash.

This relies on clients closing finished subscriptions; existing connection
and subscription bounds still apply. It does not change the configured
per-filter limit or fix cancellation in nak when using other servers.

Validation: the real-server nak regression failed before and passes 20
consecutive lookups after the fix. Multi-filter overlap/EOSE regression,
32-reader LMDB benchmark and delayed-ACK benchmark pass. Module rendering
preserves the default filter limit; full workspace and Nix builds follow.
2026-09-12 15:56:05 +00:00
..