Skip to content

Commit

Permalink
small fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
oren-lava committed Jan 20, 2025
1 parent 760fca2 commit 562bb29
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
3 changes: 0 additions & 3 deletions protocol/lavaprotocol/request_builder.go
Original file line number Diff line number Diff line change
Expand Up @@ -74,9 +74,6 @@ func ConstructRelaySession(lavaChainID string, relayRequestData *pairingtypes.Re
copiedQOS := copyQoSServiceReport(singleConsumerSession.QoSInfo.LastQoSReport)
copiedExcellenceQOS := copyQoSServiceReport(singleConsumerSession.QoSInfo.LastExcellenceQoSReportRaw) // copy raw report for the node

// validate and fix QoS excellence report before sending it to the node
copiedExcellenceQOS.ValidateAndFixQoSExcellence()

return &pairingtypes.RelaySession{
SpecId: chainID,
ContentHash: sigs.HashMsg(relayRequestData.GetContentHashData()),
Expand Down
2 changes: 1 addition & 1 deletion x/pairing/keeper/msg_server_relay_payment.go
Original file line number Diff line number Diff line change
Expand Up @@ -501,7 +501,7 @@ func (k Keeper) aggregateReputationEpochQosScore(ctx sdk.Context, subscription s
}

syncFactor := k.ReputationLatencyOverSyncFactor(ctx)
score, err := relay.QosExcellenceReport.ComputeQosExcellenceForReputation(syncFactor)
score, err := relay.QosExcellenceReport.ComputeQoSExcellence(types.WithSyncFactor(syncFactor))
if err != nil {
return utils.LavaFormatWarning("RelayPayment: could not compute qos excellence score", err,
utils.LogAttr("consumer", subscription),
Expand Down

0 comments on commit 562bb29

Please sign in to comment.