diff options
| author | Rafael <rafaelalvesp2005@gmail.com> | 2026-11-22 03:32:52 -0300 |
|---|---|---|
| committer | Rafael <rafaelalvesp2005@gmail.com> | 2026-11-22 08:29:10 -0300 |
| commit | d944af2d041b5eab3eeea59728c0c044378003fa (patch) | |
| tree | 424498c2db7eaea96c2b2f24cbb8cd785dd66e99 /runtime/test/tiny_game_exit_code_test.cpp | |
| parent | bb2e18421dac527374eb837c88b5063c5d96f81f (diff) | |
bcpack: count a BC6H/BC7 block once against the provisional gate
The provisional gate allows up to _loose_limit(n) undetermined blocks. For BC6H and BC7 it summed,
per unknown history entry, the blocks whose endpoint root used it and the blocks whose index root
used it, so a block with both roots unknown counted twice: refusals read like "8/4 blocks", and
the gate was up to twice as strict as _loose_limit means. BC3 and BC5 already keep one flag per
block.
_unknown_blocks counts the blocks whose endpoint or index root is an unknown entry, once each;
BC6H (eroot/iroot) and BC7 (er/ir) both use it. The per-entry counts in the provisional notes are
unchanged.
Tests: _unknown_blocks on blocks with one, both or no unknown roots, and a 4-block BC7 chunk whose
endpoint and index all reach history entry 255, with the table check reporting it unknown: the
refusal must say 4/4 (main says 8/4).
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Diffstat (limited to 'runtime/test/tiny_game_exit_code_test.cpp')
0 files changed, 0 insertions, 0 deletions