commit ae1f0a125ec310ad8c74b92d3b9c9260e40781a6 parent 3eb35392e3362aa26d43b562b00c7b9b76205eb8 Author: William Casarin <jb55@jb55.com> Date: Sun, 12 Jan 2025 17:45:10 -0800 add is_replaceable_kind helper we will be using this to detect replaceable kinds Diffstat:
M | src/nostrdb.c | | | 9 | +++++++++ |
1 file changed, 9 insertions(+), 0 deletions(-)
diff --git a/src/nostrdb.c b/src/nostrdb.c @@ -263,6 +263,15 @@ struct ndb_search_words int num_words; }; + +static inline int is_replaceable_kind(uint64_t kind) +{ + return kind == 0 || kind == 3 + || (10000 <= kind && kind < 20000) + || (30000 <= kind && kind < 40000); +} + + // ndb_text_search_key // // This is compressed when in lmdb: