upleb.uk

Public git repos — served from a NIP-34 GRASP relay at git.upleb.uk

summaryrefslogtreecommitdiff
path: root/runtime/src/thread_stacks.cpp
diff options
context:
space:
mode:
authorRafael <rafaelalvesp2005@gmail.com>2026-11-22 03:32:52 -0300
committerRafael <rafaelalvesp2005@gmail.com>2026-11-22 08:29:10 -0300
commitd944af2d041b5eab3eeea59728c0c044378003fa (patch)
tree424498c2db7eaea96c2b2f24cbb8cd785dd66e99 /runtime/src/thread_stacks.cpp
parentbb2e18421dac527374eb837c88b5063c5d96f81f (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/src/thread_stacks.cpp')
0 files changed, 0 insertions, 0 deletions