Skip to content

Commit

Permalink
temp comment
Browse files Browse the repository at this point in the history
  • Loading branch information
Yarom Swisa authored and Yarom Swisa committed Sep 19, 2024
1 parent 09efb19 commit 8fef340
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 14 deletions.
16 changes: 8 additions & 8 deletions protocol/monitoring/health.go
Original file line number Diff line number Diff line change
Expand Up @@ -171,14 +171,14 @@ func RunHealth(ctx context.Context,
delegations := response.GetDelegations()
for _, delegation := range delegations {
if delegation.Provider == providerAddress {
healthResults.setSpec(&spectypes.Spec{Index: delegation.ChainID})
for _, apiInterface := range chainIdToApiInterfaces[delegation.ChainID] {
healthResults.SetProviderData(LavaEntity{
Address: providerAddress,
SpecId: delegation.ChainID,
ApiInterface: apiInterface,
}, ReplyData{})
}
// healthResults.setSpec(&spectypes.Spec{Index: delegation.ChainID}) // fix yarom
// for _, apiInterface := range chainIdToApiInterfaces[delegation.ChainID] {
// healthResults.SetProviderData(LavaEntity{
// Address: providerAddress,
// SpecId: delegation.ChainID,
// ApiInterface: apiInterface,
// }, ReplyData{})
// }
}
}
return
Expand Down
12 changes: 6 additions & 6 deletions x/pairing/client/cli/tx.go
Original file line number Diff line number Diff line change
Expand Up @@ -134,12 +134,12 @@ func NewSubmitUnstakeProposalTxCmd() *cobra.Command {
content.ProvidersInfo = []types.ProviderUnstakeInfo{{Provider: providerEntry.Address, ChainId: providerEntry.Chain}}
content.DelegatorsSlashing = []types.DelegatorSlashing{}
for _, delegator := range delegators.Delegations {
if delegator.ChainID == providerEntry.Chain {
content.DelegatorsSlashing = append(content.DelegatorsSlashing, types.DelegatorSlashing{
Delegator: delegator.Delegator,
SlashingAmount: sdk.NewCoin(commontypes.TokenDenom, delegator.Amount.Amount.MulRaw(int64(slashfactor)).QuoRaw(100)),
})
}
// if delegator.ChainID == providerEntry.Chain { // fix yarom
content.DelegatorsSlashing = append(content.DelegatorsSlashing, types.DelegatorSlashing{
Delegator: delegator.Delegator,
SlashingAmount: sdk.NewCoin(commontypes.TokenDenom, delegator.Amount.Amount.MulRaw(int64(slashfactor)).QuoRaw(100)),
})
// }
}
}

Expand Down

0 comments on commit 8fef340

Please sign in to comment.