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

Begin NIP-16-support #48

Merged
merged 1 commit into from
Aug 18, 2023
Merged

Conversation

ariard
Copy link
Contributor

@ariard ariard commented Aug 11, 2023

Address #47

NIP-16 introduces two event processing policy rules for relay:

  • regular events (is_ephemeral() in our codebase)
  • replaceable events (is_replaceable() in our codebase)

We check for ephemeral in ClientHandler before any inter-thread message passing, and avoid locks. For is_replaceable processing responsibility is thrown on the NoteProcessor.

Few TODOs to get done, notably having authors filtering working.

@ariard ariard mentioned this pull request Aug 11, 2023
@ariard ariard added this to the v0.0.2 milestone Aug 11, 2023
@ariard
Copy link
Contributor Author

ariard commented Aug 18, 2023

Will land it to keep moving forward and will complete NIP-16 support in other PR.

@ariard ariard merged commit cb7d81d into civkit:main Aug 18, 2023
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