Skip to content
This repository has been archived by the owner on Nov 2, 2018. It is now read-only.

Commit

Permalink
Merge pull request #1528 from NebulousLabs/consts
Browse files Browse the repository at this point in the history
adjust constants given new capabilities
  • Loading branch information
lukechampine committed Jan 2, 2017
2 parents 715e92a + 93fc6f2 commit 31d05e3
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions api/renter.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ var (
// contracts with if the value is not specified explicity in the call to
// SetSettings.
recommendedHosts = build.Select(build.Var{
Standard: uint64(30),
Standard: uint64(42),
Dev: uint64(2),
Testing: uint64(1),
}).(uint64)
Expand All @@ -31,7 +31,7 @@ var (
// the renter settings for the renter settings to be valid. This minimum is
// there to prevent users from shooting themselves in the foot.
requiredHosts = build.Select(build.Var{
Standard: uint64(24),
Standard: uint64(20),
Dev: uint64(1),
Testing: uint64(1),
}).(uint64)
Expand Down
2 changes: 1 addition & 1 deletion modules/renter/repair.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ import (

// TODO: Move to a consts file.
const uploadFailureCooldown = time.Hour
const minPiecesRepair = 6
const minPiecesRepair = 5

var (
// errFileDeleted indicates that a chunk which is trying to be repaired
Expand Down
4 changes: 2 additions & 2 deletions modules/renter/upload.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ var (
case "dev":
return 1
case "standard":
return 4
return 8
case "testing":
return 1
}
Expand All @@ -37,7 +37,7 @@ var (
case "dev":
return 1
case "standard":
return 20
return 24
case "testing":
return 8
}
Expand Down

0 comments on commit 31d05e3

Please sign in to comment.