[NebulousLabs/Sia] Persist renter cache settings, and renter bandwidth limiter settings (#3052)

DavidVorick commented on this pull request.

> func (r *Renter) SetSettings(s modules.RenterSettings) error {
+ // Early input valudation.
+ if s.MaxDownloadSpeed < 0 || s.MaxUploadSpeed < 0 { + return errors.New("bandwidth limits cannot be negative") + } + if s.StreamCacheSize <= 0 { ok, will extend

Добавить комментарий