nostrdb

an unfairly fast embedded nostr database backed by lmdb
git clone git://jb55.com/nostrdb
Log | Files | Refs | Submodules | README | LICENSE

commit c56014f5e4cba41c2f2cccf090db74448ee764c0
parent f323474545e107248f0e461ec6f1b3d65c1687a6
Author: William Casarin <jb55@jb55.com>
Date:   Thu,  4 Jan 2024 13:43:51 -0800

filter: don't allow adding id elements on kinds

Diffstat:
Msrc/nostrdb.c | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/nostrdb.c b/src/nostrdb.c @@ -724,10 +724,10 @@ int ndb_filter_add_id_element(struct ndb_filter *filter, const unsigned char *id case NDB_FILTER_SINCE: case NDB_FILTER_UNTIL: case NDB_FILTER_LIMIT: + case NDB_FILTER_KINDS: return 0; case NDB_FILTER_IDS: case NDB_FILTER_AUTHORS: - case NDB_FILTER_KINDS: case NDB_FILTER_GENERIC: break; }