nostrdb/blocks: actually set the note block version
Version 1 to start Signed-off-by: William Casarin <jb55@jb55.com>
This commit is contained in:
committed by
Daniel D’Aquino
parent
f2795aa71c
commit
088683696a
@@ -537,6 +537,7 @@ int ndb_parse_content(unsigned char *buf, int buf_size,
|
|||||||
parser.blocks->num_blocks = 0;
|
parser.blocks->num_blocks = 0;
|
||||||
parser.blocks->blocks_size = 0;
|
parser.blocks->blocks_size = 0;
|
||||||
parser.blocks->flags = 0;
|
parser.blocks->flags = 0;
|
||||||
|
parser.blocks->version = 1;
|
||||||
|
|
||||||
blocks_start = start = parser.content.p;
|
blocks_start = start = parser.content.p;
|
||||||
while (parser.content.p < parser.content.end) {
|
while (parser.content.p < parser.content.end) {
|
||||||
|
|||||||
Reference in New Issue
Block a user