Commit a971fa1
NightCrawler
fix: re-enable legacy metrics reporter for audit bootstrap
The audit module's epoch-end recovery requires peer observations from
active probers. When the module was first activated on testnet, all
supernodes running v2.4.5-testnet had already been POSTPONED by the
legacy staleness handler (they stopped submitting MsgReportSupernodeMetrics
~500 blocks after upgrading, before the chain upgrade).
This created a deadlock:
- Recovery needs peer observations from active probers
- No active probers exist (empty active_supernode_accounts in every anchor)
- POSTPONED SNs submit epoch reports but cannot recover
- The 3 SNs on old releases bounce ACTIVE↔POSTPONED via legacy metrics
but are always POSTPONED at epoch start (anchor freeze time)
Fix: run the legacy metrics reporter alongside the audit host_reporter.
Legacy MsgReportSupernodeMetrics recovers POSTPONED SNs to ACTIVE
mid-epoch. Since they also submit audit epoch reports, the audit
EndBlocker won't re-postpone them (report exists, host minimums are
disabled, no peer-port streak). They survive the epoch end and appear
ACTIVE in the next epoch anchor, bootstrapping the peer-observation
cycle for all remaining POSTPONED SNs.
Once the active set stabilizes, the legacy reporter can be removed
in a future release.1 parent 5517a57 commit a971fa1
1 file changed
+18
-16
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
26 | 26 | | |
27 | 27 | | |
28 | 28 | | |
29 | | - | |
30 | | - | |
31 | | - | |
| 29 | + | |
32 | 30 | | |
33 | 31 | | |
34 | 32 | | |
| |||
173 | 171 | | |
174 | 172 | | |
175 | 173 | | |
176 | | - | |
177 | | - | |
178 | | - | |
179 | | - | |
180 | | - | |
181 | | - | |
182 | | - | |
183 | | - | |
184 | | - | |
185 | | - | |
186 | | - | |
187 | | - | |
| 174 | + | |
| 175 | + | |
| 176 | + | |
| 177 | + | |
| 178 | + | |
| 179 | + | |
| 180 | + | |
| 181 | + | |
| 182 | + | |
| 183 | + | |
| 184 | + | |
| 185 | + | |
| 186 | + | |
| 187 | + | |
| 188 | + | |
| 189 | + | |
188 | 190 | | |
189 | 191 | | |
190 | 192 | | |
| |||
253 | 255 | | |
254 | 256 | | |
255 | 257 | | |
256 | | - | |
| 258 | + | |
257 | 259 | | |
258 | 260 | | |
259 | 261 | | |
| |||
0 commit comments