Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: invalid QoS excellence report to the node #1922

Merged
merged 1 commit into from
Jan 22, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion protocol/lavaprotocol/request_builder.go
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ func ConstructRelaySession(lavaChainID string, relayRequestData *pairingtypes.Re
}

copiedQOS := copyQoSServiceReport(singleConsumerSession.QoSInfo.LastQoSReport)
copiedExcellenceQOS := copyQoSServiceReport(singleConsumerSession.QoSInfo.LastExcellenceQoSReportRaw) // copy raw report for the node
copiedExcellenceQOS := copyQoSServiceReport(singleConsumerSession.QoSInfo.LastExcellenceQoSReport)

return &pairingtypes.RelaySession{
SpecId: chainID,
Expand Down
15 changes: 7 additions & 8 deletions protocol/lavasession/consumer_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -85,14 +85,13 @@ type ignoredProviders struct {
}

type QoSReport struct {
LastQoSReport *pairingtypes.QualityOfServiceReport
LastExcellenceQoSReport *pairingtypes.QualityOfServiceReport
LastExcellenceQoSReportRaw *pairingtypes.QualityOfServiceReport
LatencyScoreList []sdk.Dec
SyncScoreSum int64
TotalSyncScore int64
TotalRelays uint64
AnsweredRelays uint64
LastQoSReport *pairingtypes.QualityOfServiceReport
LastExcellenceQoSReport *pairingtypes.QualityOfServiceReport
LatencyScoreList []sdk.Dec
SyncScoreSum int64
TotalSyncScore int64
TotalRelays uint64
AnsweredRelays uint64
}

type DataReliabilitySession struct {
Expand Down
Loading