square / subzero

Block's Bitcoin Cold Storage solution.
Apache License 2.0
686 stars 95 forks source link

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

Closed ivmaykov closed 1 year ago

ivmaykov commented 1 year 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.