damus

nostr ios client
git clone git://jb55.com/damus
Log | Files | Refs | README | LICENSE

commit 919f644cba93c7a8571d96653777c1058762a350
parent 690e1347e007cc3b355abde7b926a7bb4a747fa8
Author: William Casarin <jb55@jb55.com>
Date:   Wed, 17 Apr 2024 12:11:40 -0700

add assert to catch potential bug

Signed-off-by: William Casarin <jb55@jb55.com>

Diffstat:
Mnostrdb/src/block.c | 1+
1 file changed, 1 insertion(+), 0 deletions(-)

diff --git 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; }