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
|
return err
|
||||||
}
|
}
|
||||||
|
|
||||||
maxRPCPrice, err := computeByRate(p.config.Config().Core.Storage.Sia.MaxRPCSCPrice, averageRate, "max rpc price")
|
maxRPCPrice, ok := new(big.Rat).SetString(p.config.Config().Core.Storage.Sia.MaxRPCSCPrice)
|
||||||
if err != nil {
|
if !ok {
|
||||||
return err
|
return errors.New("failed to parse max rpc price")
|
||||||
}
|
}
|
||||||
|
|
||||||
maxRPCPrice = ratDivide(maxRPCPrice, 1_000_000)
|
maxRPCPrice = ratDivide(maxRPCPrice, 1_000_000)
|
||||||
|
|
Loading…
Reference in New Issue