Skip to content

Commit

Permalink
fix logs
Browse files Browse the repository at this point in the history
  • Loading branch information
rbajollari committed Jan 21, 2025
1 parent 70ef5bc commit b523cff
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions x/oracle/abci/proposal.go
Original file line number Diff line number Diff line change
Expand Up @@ -248,10 +248,10 @@ func (h *ProposalHandler) verifyExchangeRateVotes(
generatedVote := generatedVotes[i]

if injectedVote.Voter != generatedVote.Voter || !injectedVote.ExchangeRates.Equal(generatedVote.ExchangeRates) {
h.logger.Info("injected voter %s", injectedVote.Voter)
h.logger.Info("generated voter %s", generatedVote.Voter)
h.logger.Info("injected voter %+v", injectedVote.ExchangeRates)
h.logger.Info("injected voter %+v", generatedVote.ExchangeRates)
h.logger.Info("injected", "voter %s", injectedVote.Voter)
h.logger.Info("generated", "voter %s", generatedVote.Voter)
h.logger.Info("injected", "voter %+v", injectedVote.ExchangeRates)
h.logger.Info("injected", "voter %+v", generatedVote.ExchangeRates)
return oracletypes.ErrNonEqualInjVotesRates
}
}
Expand Down Expand Up @@ -305,16 +305,16 @@ func (h *ProposalHandler) verifyExternalLiquidity(
generatedExternalLiquidity := generatedExternalLiquidityList[i]

if injectedExternalLiquidity.PoolId != generatedExternalLiquidity.PoolId {
h.logger.Info("injected PoolId %d", injectedExternalLiquidity.PoolId)
h.logger.Info("generated PoolId %d", generatedExternalLiquidity.PoolId)
h.logger.Info("injected", "PoolId %d", injectedExternalLiquidity.PoolId)
h.logger.Info("generated", "PoolId %d", generatedExternalLiquidity.PoolId)
return oracletypes.ErrNonEqualInjVotesRates
}

if len(injectedExternalLiquidity.AmountDepthInfo) != len(generatedExternalLiquidity.AmountDepthInfo) ||
injectedExternalLiquidity.AmountDepthInfo[0] != generatedExternalLiquidity.AmountDepthInfo[0] ||
injectedExternalLiquidity.AmountDepthInfo[1] != generatedExternalLiquidity.AmountDepthInfo[1] {
h.logger.Info("injected ExternalLiquidity AmountDepthInfo %+v", injectedExternalLiquidity.AmountDepthInfo)
h.logger.Info("generated ExternalLiquidity AmountDepthInfo %+v", generatedExternalLiquidity.AmountDepthInfo)
h.logger.Info("injected ExternalLiquidity", "AmountDepthInfo %+v", injectedExternalLiquidity.AmountDepthInfo)
h.logger.Info("generated ExternalLiquidity", "AmountDepthInfo %+v", generatedExternalLiquidity.AmountDepthInfo)
return oracletypes.ErrNonEqualInjVotesRates
}
}
Expand Down

0 comments on commit b523cff

Please sign in to comment.