Skip to content

feat(relay): make filter tag limit configurable#192

Merged
hoytech merged 1 commit intohoytech:masterfrom
Thunder-Blaze:feat/configurable-filter-tag-limit
Apr 15, 2026
Merged

feat(relay): make filter tag limit configurable#192
hoytech merged 1 commit intohoytech:masterfrom
Thunder-Blaze:feat/configurable-filter-tag-limit

Conversation

@Thunder-Blaze
Copy link
Copy Markdown
Contributor

Description

Currently, the maximum number of tag filters per Nostr filter object is hardcoded. This PR introduces a maxTagsPerFilter config option so relay operators can actually bump this limit if they need to.

Issue

Testing

1st Response -> When maxTagsPerFilter config was set to 3
2nd Response -> When maxTagsPerFilter config was changed to 4 from 3

image
  • APPS="dbutils relay mesh" make -j4 succeeds locally.

Notes

  • The default stays at 3, so there's no behavior change for existing setups unless they explicitly raise the limit (which comes with a matching cost warning in the docs).
  • Higher values increase worst-case work when matching tags (see comment in config).

@hoytech
Copy link
Copy Markdown
Owner

hoytech commented Apr 15, 2026

LGTM, thanks!

@hoytech hoytech merged commit efc66fd into hoytech:master Apr 15, 2026
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.

hardcoded tag limit in filters

2 participants