Commit 9a80a0a
committed
ltc: couple AutoRatchet mint gate to the work-weighted accept gate
The v35->v36 crossing soak (#97) wedged: AutoRatchet activated on a
95%-by-COUNT desired-version tally, but the consensus accept gate
(share_check step 2 / p2pool check() data.py:1399) admits a V36 boundary
share only when desired-version reaches 60% by WORK over the
[9/10*CL, CL] window -- canonical get_desired_version_counts
(data.py:2651) weights each share by target_to_average_attempts(target).
Under heterogeneous hashrate a small miner set can carry the COUNT past
95% while the work-weighted tail sits below 60%, so the activated node
mints a V36 boundary share that every peer rejects, freezing the crossing.
Switch AutoRatchet tail guard from flat-count get_desired_version_counts
to work-weighted get_desired_version_weights, over the same window at the
same 60% threshold the accept gate enforces. Activation now strictly
implies the accept rule, so a minted boundary share can never be rejected.
Supersedes the earlier F10 keep-activation-flat-count choice, which the
soak proved unsafe. Covers LTC and DOGE (merged, rides LTC AutoRatchet).1 parent 67d1fb1 commit 9a80a0a
1 file changed
Lines changed: 27 additions & 11 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
140 | 140 | | |
141 | 141 | | |
142 | 142 | | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
143 | 157 | | |
144 | 158 | | |
145 | 159 | | |
146 | | - | |
147 | | - | |
148 | | - | |
149 | | - | |
150 | | - | |
151 | | - | |
152 | | - | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
153 | 168 | | |
154 | | - | |
| 169 | + | |
| 170 | + | |
155 | 171 | | |
156 | | - | |
| 172 | + | |
157 | 173 | | |
158 | 174 | | |
159 | 175 | | |
160 | | - | |
161 | | - | |
| 176 | + | |
| 177 | + | |
162 | 178 | | |
163 | 179 | | |
164 | 180 | | |
| |||
0 commit comments