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
2023-12-30 06:29:24 -08:00
committed by Daniel D’Aquino
parent c2c73c3af6
commit c831976078
4 changed files with 15 additions and 5 deletions

View File

@@ -469,6 +469,7 @@ int ndb_parse_content(unsigned char *buf, int buf_size,
// BLOCKS
enum ndb_block_type ndb_block_type(struct ndb_blocks *blocks);
size_t ndb_blocks_total_size(struct ndb_blocks *blocks);