fix: dont compute by rate the max rpc price
This commit is contained in:
parent
944cb868b5
commit
96ec3b8501
|
@ -151,9 +151,9 @@ SELECT AVG(rate) as average_rate FROM (
|
|||
return err
|
||||
}
|
||||
|
||||
maxRPCPrice, err := computeByRate(p.config.Config().Core.Storage.Sia.MaxRPCSCPrice, averageRate, "max rpc price")
|
||||
if err != nil {
|
||||
return err
|
||||
maxRPCPrice, ok := new(big.Rat).SetString(p.config.Config().Core.Storage.Sia.MaxRPCSCPrice)
|
||||
if !ok {
|
||||
return errors.New("failed to parse max rpc price")
|
||||
}
|
||||
|
||||
maxRPCPrice = ratDivide(maxRPCPrice, 1_000_000)
|
||||
|
|
Loading…
Reference in New Issue