Skip to content

Commit

Permalink
renterd: set price pinning to prevent crash
Browse files Browse the repository at this point in the history
  • Loading branch information
n8maninger committed Aug 31, 2024
1 parent fc79e4a commit 021a68f
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion nodes/renterd.go
Original file line number Diff line number Diff line change
Expand Up @@ -350,7 +350,10 @@ func (m *Manager) StartRenterd(ctx context.Context, ready chan<- struct{}) error
return fmt.Errorf("failed to update setting: %w", err)
}
err = busClient.UpdateSetting(ctx, api.SettingPricePinning, api.PricePinSettings{
Enabled: false,
Enabled: false,
Currency: "usd",
ForexEndpointURL: "https://api.siascan.com/exchange-rate/siacoin",
Threshold: 0.05,
})
if err != nil {
return fmt.Errorf("failed to update setting: %w", err)
Expand Down

0 comments on commit 021a68f

Please sign in to comment.