This allows users of nostrdb to selectively filter notes of any kind during ingest. Contact lists too big? Create a filter to reject them. You only care about notes with specific kinds? Reject everything else. Damus will use this for rejecting large events that might take up too much space for storage, such as contact lists. This commit also switched to ndb_config for configuring nostrdb, because the arguments to ndb_init were getting out of hand. Changelog-Added: Added ingest filter setting Changelog-Changed: Switch to ndb_config for per-session ndb settings Signed-off-by: William Casarin <jb55@jb55.com>
15 KiB
15 KiB