square / subzero

Block's Bitcoin Cold Storage solution.
Apache License 2.0
677 stars 93 forks source link

[core] no need to statically allocate 128 slots for self-check functions #685

Closed ivmaykov closed 10 months ago

ivmaykov commented 10 months ago

The self_checks array in self_checks.c doesn't need to have 128 slots when only 12 are being used. We can just set MAX_SELF_CHECKS to the old value of EXPECTED_SELF_CHECKS_COUNT and remove the latter.