nostr-protocol / nips

Nostr Implementation Possibilities
2.4k stars 583 forks source link

[NIP-01] What should setting a "limit" in multiple REQ filters do? #1368

Closed bezysoftware closed 4 months ago

bezysoftware commented 4 months ago

REQ message can contain multiple filters and each can have a limit specified. What should happen if they differ across filters? Does it even make sense to have a limit per filter, shouldn't there be just one per REQ message?

bezysoftware commented 4 months ago

Duplicate of #725

fiatjaf commented 4 months ago

One count for each filter makes the most sense to me, as in my relay implementation each filter in the array is treated independently.

bezysoftware commented 4 months ago

Agreed, at first I didn't see the usecase for doing a limit per filter. Might be worth elaborating on it in the nip, since I'm not the first one to not get it right. I'll try to do a PR