Skip to content

Commit

Permalink
text(oracle):remove debug prints
Browse files Browse the repository at this point in the history
  • Loading branch information
leonz789 committed May 23, 2024
1 parent 32de369 commit 407e16e
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions x/oracle/keeper/aggregator/context.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ package aggregator

import (
"errors"
"fmt"
"math/big"
"time"

Expand Down Expand Up @@ -50,10 +49,6 @@ func (agc *AggregatorContext) sanityCheck(msg *types.MsgCreatePrice) error {
// TODO: check len(price.prices)>0, len(price.prices._range_eachPriceSource.Prices)>0, at least has one source, and for each source has at least one price
// TODO: check for each source, at most maxDetId count price (now in filter, ->anteHandler)

fmt.Println("debug-oracle:", msg.Creator, len(agc.validatorsPower))
for k, v := range agc.validatorsPower {
fmt.Printf("debug-oracle:validator_%s, power_%s\n", k, v.String())
}
if agc.validatorsPower[msg.Creator] == nil {
return errors.New("signer is not validator")
}
Expand Down

0 comments on commit 407e16e

Please sign in to comment.