nostrdb/blocks: add total_size

Fix this mistake that we have with ndb_notes where we don't know the
total size of the object

Signed-off-by: William Casarin <jb55@jb55.com>
This commit is contained in:
William Casarin
2025-08-11 16:39:43 -07:00
committed by Daniel D’Aquino
parent c2c73c3af6
commit c831976078
4 changed files with 15 additions and 5 deletions
+2 -1
View File
@@ -19,7 +19,8 @@ struct ndb_blocks {
uint32_t num_blocks;
uint32_t blocks_size;
// future expansion
uint32_t reserved[2];
uint32_t total_size;
uint32_t reserved;
unsigned char blocks[0]; // see ndb_block definition
};