add assert to catch potential bug
Signed-off-by: William Casarin <jb55@jb55.com>
This commit is contained in:
committed by
Daniel D’Aquino
parent
690e1347e0
commit
919f644cba
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user