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

Ignore unrecognized filters #94

Closed
wants to merge 1 commit into from

Conversation

alexgleason
Copy link
Contributor

NIP-01 is pretty stable, and custom filters should be able to degrade gracefully. Known unsupported filters like search can be errored, but clients should rely on supported_nips to know whether a relay will support the filter before sending it. It's better to just ignore unrecognized keys. It won't have catastrophic consequences and will allow custom filters to gracefully degrade.

@alexgleason
Copy link
Contributor Author

I decided this is probably wrong. It violates the "protocol bloat" idea: https://fiatjaf.com/27598e6f.html

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.

1 participant