Skip to content

Commit d0b449c

Browse files
committed
REMOVEME: add assert to catch potential bug
Signed-off-by: William Casarin <[email protected]>
1 parent f81182d commit d0b449c

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

nostrdb/src/block.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -185,6 +185,7 @@ struct nostr_bech32 *ndb_bech32_block(struct ndb_block *block) {
185185

186186
// total size including padding
187187
size_t ndb_blocks_total_size(struct ndb_blocks *blocks) {
188+
assert(blocks->total_size < 1000000);
188189
return blocks->total_size;
189190
}
190191

0 commit comments

Comments
 (0)