dgb: AutoRatchet 95/50/2x threshold seam (slice #2, SAFE-ADDITIVE, fenced) - #108
Merged
Merged
Conversation
Port ltc::AutoRatchet threshold surface into dgb::AutoRatchet without authoring the transition state machine. Carries, byte-for-byte from ltc/auto_ratchet.hpp (== p2pool-merged-v36 data.py AutoRatchet): ACTIVATION_THRESHOLD = 95 (VOTING -> ACTIVATED) DEACTIVATION_THRESHOLD = 50 (ACTIVATED -> VOTING) CONFIRMATION_MULTIPLIER = 2 (confirm after 2x CHAIN_LENGTH) SWITCH_THRESHOLD = 60 (tail-guard floor) plus RatchetState enum + ratchet_state_str. The state machine (get_share_version / load / save) stays a fenced TODO behind the EXISTING F10 version-acceptance gate AND the post-soak-freeze fence (share.hpp conformance note): the share_check version-acceptance path is NOT authored here. DGB-Scrypt shares LTC ratchet math, so the deferred port is a namespace change, not a re-derivation. Compat with p2pool-merged-v36 preserved.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
DGB pillar 1 — slice #2: AutoRatchet threshold seam (SAFE-ADDITIVE, single-coin)
Ports the
ltc::AutoRatchetthreshold surface intodgb::AutoRatchetas a structural seam only. No transition state machine is authored in this slice.Scope
src/impl/dgb/auto_ratchet.hpp(+49/-7).src/impl/dgb/only — noltc/,doge/,btc/, or shared-base touch.What it carries (byte-for-byte from
ltc/auto_ratchet.hpp== p2pool-merged-v36data.pyAutoRatchet)ACTIVATION_THRESHOLD = 95(VOTING -> ACTIVATED)DEACTIVATION_THRESHOLD = 50(ACTIVATED -> VOTING)CONFIRMATION_MULTIPLIER = 2(confirm after 2x CHAIN_LENGTH)SWITCH_THRESHOLD = 60(tail-guard floor)RatchetStateenum +ratchet_state_strWhat stays fenced (NOT in this slice)
get_share_version/load/save) remains a TODO behind the existing F10 version-acceptance gate AND the post-soak-freeze fence (per share.hpp conformance note).share_checkversion-acceptance path is authored. Do not read the fenced TODO as live transition logic.Compat
p2pool-merged-v36 compatibility preserved — DGB-Scrypt shares LTC ratchet math, so this is a namespace change, not a re-derivation.
Base:
dgb/pool-pillars-port(stacked; auto_ratchet.hpp base exists only on that branch). Operator merges.