Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
30 commits
Select commit Hold shift + click to select a range
c999756
nostrdb: config: custom writer scratch size
jb55 Mar 19, 2025
c9ede54
nostrdb: Initial relay index implementation
jb55 Mar 19, 2025
cc5dea1
nostrdb: relay: add note relay iteration
jb55 Mar 20, 2025
4a4564b
nostrdb: ndb: add print-relay-kind-index-keys
jb55 Mar 20, 2025
96a5712
nostrdb: win: fix build on windows
jb55 Mar 20, 2025
e1654e2
nostrdb: note: always write relay index
jb55 Mar 21, 2025
96b6159
nostrdb: relay-index: fix a few bugs
jb55 Mar 21, 2025
7397576
nostrdb: debug: add a print for debugging rust integration
jb55 Mar 21, 2025
977d7e5
nostrdb: relay: fix race condition bug
jb55 Mar 21, 2025
5ba6a98
nostrdb: relay: fix potential relay index corruption
jb55 Mar 21, 2025
86b549e
nostrdb: Relay queries
jb55 Mar 22, 2025
b23dd9a
nostrdb: query: implement author_kind query plan
jb55 Mar 23, 2025
f5e25fa
nostrdb: fix build on macos
jb55 Mar 24, 2025
228ba1e
nostrdb: query: implement profile search query plans
jb55 Mar 30, 2025
92a1d9a
nostrdb: filter: add initial custom filtering logic
jb55 Apr 8, 2025
80215ac
nostrdb: eq: fix fallthrough bug
jb55 Apr 9, 2025
96b1243
nostrdb: change <=10 author search queries to ==1
jb55 Apr 29, 2025
d6f3d8b
nostrdb: nostrdb: calculate id in ndb_note_verify
jb55 Jun 24, 2025
f690080
nostrdb: add ndb_builder_push_tag_id
jb55 Jul 3, 2025
49b7472
nostrdb: memory: fix a bunch of memory leaks
jb55 Jul 8, 2025
14925a0
nostrdb: mem: search cursor close
jb55 Jul 11, 2025
66578e3
nostrdb: mem: reaction stats cleanup
jb55 Jul 11, 2025
240a629
nostrdb: mem: relay iter cleanup
jb55 Jul 11, 2025
c472f2a
nostrdb: mem: builder clear before free
jb55 Jul 11, 2025
172840a
nostrdb: mem: close cursors in print helpers
jb55 Jul 11, 2025
c29164c
nostrdb: Revert "mem: search cursor close"
jb55 Jul 11, 2025
c4455d8
nostrdb: mem: re-enable profile freeing
jb55 Jul 11, 2025
383954e
nostrdb: win: fix heap corruption with flatbuf
jb55 Jul 11, 2025
b566df9
nostrdb: search: fix memleak in profile search
jb55 Jul 11, 2025
e700ca0
nostrdb: query: enforce author matches in author_kind queries
jb55 Jul 17, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion nostrdb/src/content_parser.c
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,10 @@ struct ndb_content_parser {

static int parse_digit(struct cursor *cur, int *digit) {
int c;
if ((c = peek_char(cur, 0)) == -1)
if ((c = peek_char(cur, 0)) == -1) {
*digit = 0;
return 0;
}

c -= '0';

Expand Down
1 change: 0 additions & 1 deletion nostrdb/src/cursor.h
Original file line number Diff line number Diff line change
Expand Up @@ -715,7 +715,6 @@ static inline int cursor_align(struct cursor *cur, int bytes) {

// pad to n-byte alignment
pad = ((size + (bytes-1)) & ~(bytes-1)) - size;

if (pad > 0 && !cursor_memset(cur, 0, pad))
return 0;

Expand Down
Loading