Commit 4bd5baf
committed
dgb: standardize AutoRatchet mint gate to the work-weighted accept gate (contract)
Mirrors the intent of ltc 865fdd7 onto the DGB lane. ltc-doge root-caused
the v35->v36 crossing wedge (#97): the AutoRatchet mint gate activated on a
95%-by-flat-COUNT desired-version tally, but the consensus accept gate
(share_check step 2 / p2pool check() data.py:1399) admits a V36 boundary
share only at the WORK-WEIGHTED 60% rule (canonical get_desired_version_counts,
data.py:2651, weights each share by target_to_average_attempts). Under
heterogeneous hashrate the flat count outran the work-weighted accept gate,
so the minter produced boundary shares every peer rejected -> frozen crossing.
DGB carries NO AutoRatchet minter yet (no src/impl/dgb/auto_ratchet.hpp; the
minter lands in Phase B). The DGB accept gate (share_check.hpp version-switch
rule) is ALREADY work-weighted/canonical via get_desired_version_weights, and
that accessor is KAT-pinned (#249). The ONLY artifact of the unsafe F10
flat-count choice on this lane is the design-contract recorded in comments,
which would seed the exact wedge into the future port. This corrects those
comments so DGB's AutoRatchet is born work-weighted: its activation tail guard
MUST read get_desired_version_weights over the same [9/10*CL, CL] window at the
same 60% threshold the accept gate enforces, superseding F10.
v36-native shared structure (consensus version-signaling), standardized
cross-coin for a clean v37 migration. Comment-only; zero behavior change (no
minter exists to alter). Per-coin isolation preserved: touches src/impl/dgb/ only.1 parent 7f12a47 commit 4bd5baf
2 files changed
Lines changed: 19 additions & 7 deletions
File tree
- src/impl/dgb
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1654 | 1654 | | |
1655 | 1655 | | |
1656 | 1656 | | |
1657 | | - | |
1658 | | - | |
| 1657 | + | |
| 1658 | + | |
| 1659 | + | |
| 1660 | + | |
| 1661 | + | |
| 1662 | + | |
1659 | 1663 | | |
1660 | 1664 | | |
1661 | 1665 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2126 | 2126 | | |
2127 | 2127 | | |
2128 | 2128 | | |
2129 | | - | |
2130 | | - | |
2131 | | - | |
2132 | | - | |
| 2129 | + | |
| 2130 | + | |
| 2131 | + | |
| 2132 | + | |
| 2133 | + | |
| 2134 | + | |
| 2135 | + | |
| 2136 | + | |
| 2137 | + | |
| 2138 | + | |
| 2139 | + | |
2133 | 2140 | | |
2134 | 2141 | | |
2135 | 2142 | | |
| |||
2643 | 2650 | | |
2644 | 2651 | | |
2645 | 2652 | | |
2646 | | - | |
| 2653 | + | |
| 2654 | + | |
2647 | 2655 | | |
2648 | 2656 | | |
2649 | 2657 | | |
| |||
0 commit comments