nostrdb

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

commit 5fee42e5ec9e0dbe3495ced4e0d2a4fc8c528fae
parent 7ccd1a56118ccaf5f66077fac8b2cd7af78fcd47
Author: William Casarin <jb55@jb55.com>
Date:   Sat, 30 Dec 2023 06:33:12 -0800

blocks: actually set the note block version

Version 1 to start

Signed-off-by: William Casarin <jb55@jb55.com>

Diffstat:
Msrc/content_parser.c | 1+
1 file changed, 1 insertion(+), 0 deletions(-)

diff --git a/src/content_parser.c b/src/content_parser.c @@ -537,6 +537,7 @@ int ndb_parse_content(unsigned char *buf, int buf_size, parser.blocks->num_blocks = 0; parser.blocks->blocks_size = 0; parser.blocks->flags = 0; + parser.blocks->version = 1; blocks_start = start = parser.content.p; while (parser.content.p < parser.content.end) {