Skip to content

ltc: reconcile stale count-based comments on AutoRatchet tail-guard (code is work-weighted) - #368

Merged
frstrtr merged 1 commit into
masterfrom
ltc-doge/ratchet-tailguard-comment-reconcile
Jun 23, 2026
Merged

ltc: reconcile stale count-based comments on AutoRatchet tail-guard (code is work-weighted)#368
frstrtr merged 1 commit into
masterfrom
ltc-doge/ratchet-tailguard-comment-reconcile

Conversation

@frstrtr

@frstrtr frstrtr commented Jun 23, 2026

Copy link
Copy Markdown
Owner

Comment-only reconciliation. Three stale comments asserted the AutoRatchet tail guard was flat-count; the code (auto_ratchet.hpp:160, share_check.hpp:1779) calls get_desired_version_weights and couples activation to the check()-phase 60%-by-work accept gate (#288 mint<->accept coupling). The only count fn, get_desired_version_counts (share_tracker.hpp:2131), has zero callers in src/impl/ltc. Reconciled comments to the code. No consensus-value change, single LTC tree, GPG-signed (50AB1379). Verified by integrator.

…code is work-weighted)

The LTC AutoRatchet VOTING tail-guard calls get_desired_version_weights
(auto_ratchet.hpp), i.e. it is WORK-weighted and coupled to the check()-phase
60% accept gate (mint strictly implies accept). Three comments asserted the
opposite (flat-count / finding #1 count-based), contradicting the call site.
Comment-only; no consensus-value change.

- auto_ratchet.hpp: drop "stays inline and count-based (finding #1)"
- share_tracker.hpp: drop "FLAT-COUNT variant"/"count-based per F10 finding #1"
- share_check.hpp: drop "AutoRatchet stays count-based"

No remaining flat-count tail-guard codepath: the only count fn
(get_desired_version_counts) has no callers in src/impl/ltc; the comment
described an intent the code never implemented. LTC is the canonical reference
mirrored by dgb/dash/bch, so the prose now matches the work-weighted standard.
@frstrtr
frstrtr merged commit 64223bd into master Jun 23, 2026
20 checks passed
frstrtr added a commit that referenced this pull request Jun 23, 2026
…nt-reconcile

ltc: reconcile stale count-based comments on AutoRatchet tail-guard (code is work-weighted)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant