@@ -26,7 +26,9 @@ import (
2626 hostReporterService "github.com/LumeraProtocol/supernode/v2/supernode/host_reporter"
2727 statusService "github.com/LumeraProtocol/supernode/v2/supernode/status"
2828 storageChallengeService "github.com/LumeraProtocol/supernode/v2/supernode/storage_challenge"
29- supernodeMetrics "github.com/LumeraProtocol/supernode/v2/supernode/supernode_metrics"
29+ // Legacy supernode metrics reporter (MsgReportSupernodeMetrics) has been superseded by
30+ // epoch-scoped audit reporting in `x/audit`.
31+ // supernodeMetrics "github.com/LumeraProtocol/supernode/v2/supernode/supernode_metrics"
3032 "github.com/LumeraProtocol/supernode/v2/supernode/transport/gateway"
3133 cascadeRPC "github.com/LumeraProtocol/supernode/v2/supernode/transport/grpc/cascade"
3234 server "github.com/LumeraProtocol/supernode/v2/supernode/transport/grpc/status"
@@ -171,22 +173,18 @@ The supernode will connect to the Lumera network and begin participating in the
171173 logtrace .Fatal (ctx , "Failed to initialize host reporter" , logtrace.Fields {"error" : err .Error ()})
172174 }
173175
174- // Legacy on-chain supernode metrics reporting (MsgReportSupernodeMetrics)
175- // runs alongside the audit epoch reporter. It is needed to recover
176- // POSTPONED supernodes via the supernode module's instant-recovery
177- // path so they appear ACTIVE in the next epoch anchor — which
178- // bootstraps the audit peer-observation cycle.
179- metricsCollector := supernodeMetrics .NewCollector (
180- statusSvc ,
181- lumeraClient ,
182- appConfig .SupernodeConfig .Identity ,
183- Version ,
184- kr ,
185- appConfig .SupernodeConfig .Port ,
186- appConfig .P2PConfig .Port ,
187- appConfig .SupernodeConfig .GatewayPort ,
188- )
189- logtrace .Info (ctx , "Legacy metrics collection enabled (audit bootstrap)" , logtrace.Fields {})
176+ // Legacy on-chain supernode metrics reporting has been superseded by `x/audit`.
177+ // metricsCollector := supernodeMetrics.NewCollector(
178+ // statusSvc,
179+ // lumeraClient,
180+ // appConfig.SupernodeConfig.Identity,
181+ // Version,
182+ // kr,
183+ // appConfig.SupernodeConfig.Port,
184+ // appConfig.P2PConfig.Port,
185+ // appConfig.SupernodeConfig.GatewayPort,
186+ // )
187+ // logtrace.Info(ctx, "Metrics collection enabled", logtrace.Fields{})
190188
191189 // Storage challenge history DB (shared by the gRPC handler and runner).
192190 historyStore , err := queries .OpenHistoryDB ()
@@ -255,7 +253,7 @@ The supernode will connect to the Lumera network and begin participating in the
255253 // Start the services using the standard runner and capture exit
256254 servicesErr := make (chan error , 1 )
257255 go func () {
258- services := []service {grpcServer , cService , p2pService , gatewayServer , hostReporter , metricsCollector }
256+ services := []service {grpcServer , cService , p2pService , gatewayServer , hostReporter }
259257 if storageChallengeRunner != nil {
260258 services = append (services , storageChallengeRunner )
261259 }
0 commit comments