Why Nostr?What is Njump?
Martti Malmi /
npub1g53…drvk
2024-01-31 11:48:25

Martti Malmi on Nostr: Pull requested to strfry. Thoughts? --- NIP-114: ids_only filter When a subscription ...

Pull requested to strfry. Thoughts?

---

NIP-114: ids_only filter

When a subscription has a filter with ids_only: true, the relay responds with [HAVE, subId, eventID] messages. The client can then request the full event from only one relay instead of receiving it from all subscribed relays. If the event is already in a local database, the full event request can be skipped altogether.

I have not implemented this for the stream command yet, but this could save a lot of bandwidth if you're connecting to many other relays and subscribing to everything.

We might also want a GET message that is sent in response to HAVE messages to request the full event without creating a subscription.

https://github.com/hoytech/strfry/pull/99
Author Public Key
npub1g53mukxnjkcmr94fhryzkqutdz2ukq4ks0gvy5af25rgmwsl4ngq43drvk