Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

NIP-122: Request For Events #1326

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open

Conversation

cameri
Copy link
Member

@cameri cameri commented Jun 23, 2024

No description provided.

Signed-off-by: Ricardo Arturo Cabral Mejía <me@ricardocabral.io>
@vitorpamplona
Copy link
Collaborator

Nice!

You should allow a tags as well.

@cameri
Copy link
Member Author

cameri commented Jun 23, 2024 via email

@vitorpamplona
Copy link
Collaborator

vitorpamplona commented Jun 23, 2024

Yep, you can ask using e tags and/or a tags for the newest version of a replaceable.

@mikedilger
Copy link
Contributor

If this becomes widely implemented, I could see someone posting an ephemeral public request for missing events, and then thousands of clients all responding with those events flooding the relay they are communicating with.

I'm not sure by what mechanism that can be avoided.

@cameri
Copy link
Member Author

cameri commented Jun 23, 2024

If this becomes widely implemented, I could see someone posting an ephemeral public request for missing events, and then thousands of clients all responding with those events flooding the relay they are communicating with.

I'm not sure by what mechanism that can be avoided.

Clients can respond to a sample of the incoming requests, rate limit, have quotas for this function or data caps, require PoW, respond only from their Web of Trust.

There's plenty of solutions to mitigate that scenario.

@cameri
Copy link
Member Author

cameri commented Jun 23, 2024

If this becomes widely implemented, I could see someone posting an ephemeral public request for missing events, and then thousands of clients all responding with those events flooding the relay they are communicating with.

I'm not sure by what mechanism that can be avoided.

Relays also mitigate the effect by not forwarding if the event ID is stored.

@vitorpamplona
Copy link
Collaborator

It might also be a hint to the relay or to a relay service to find those events because your users want them.

There could be services that just connect to relays and re-broadcast events from other relays based on these requests.

@fabianfabian
Copy link

Interesting approach. Could maybe also eventually be extended to respond with wrapped events if events are not accepted (maybe too old or other reason).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants