diff --git a/nostrdb/src/block.c b/nostrdb/src/block.c index 65f25e3e..6c2f22f5 100644 --- a/nostrdb/src/block.c +++ b/nostrdb/src/block.c @@ -185,6 +185,7 @@ struct nostr_bech32 *ndb_bech32_block(struct ndb_block *block) { // total size including padding size_t ndb_blocks_total_size(struct ndb_blocks *blocks) { + assert(blocks->total_size < 1000000); return blocks->total_size; }