Skip to content
GitLab
Menu
Why GitLab
Pricing
Contact Sales
Explore
Why GitLab
Pricing
Contact Sales
Explore
Sign in
Get free trial
Primary navigation
Search or go to…
Project
Sia
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Privacy statement
Keyboard shortcuts
?
What's new
6
Snippets
Groups
Projects
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
NebulousLabs
Sia
Commits
94918f0b
You need to sign in or sign up before continuing.
Commit
94918f0b
authored
3 years ago
by
Luke Champine
Browse files
Options
Downloads
Patches
Plain Diff
bump version to 1.5.6
parent
421e3447
No related branches found
No related tags found
Loading
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
build/version.go
+1
-1
1 addition, 1 deletion
build/version.go
modules/renter/hostdb/hostweight.go
+4
-1
4 additions, 1 deletion
modules/renter/hostdb/hostweight.go
with
5 additions
and
2 deletions
build/version.go
+
1
−
1
View file @
94918f0b
...
...
@@ -14,7 +14,7 @@ const (
MaxEncodedVersionLength
=
100
// Version is the current version of siad.
Version
=
"1.5.
5
"
Version
=
"1.5.
6
"
)
// ReleaseTag contains the release tag, such as "rc3". It is supplied at build
...
...
This diff is collapsed.
Click to expand it.
modules/renter/hostdb/hostweight.go
+
4
−
1
View file @
94918f0b
...
...
@@ -397,11 +397,14 @@ func versionAdjustments(entry modules.HostDBEntry) float64 {
// we give the current version a very tiny penalty is so that the test suite
// complains if we forget to update this file when we bump the version next
// time. The value compared against must be higher than the current version.
if
build
.
VersionCmp
(
entry
.
Version
,
"1.5.
6
"
)
<
0
{
if
build
.
VersionCmp
(
entry
.
Version
,
"1.5.
7
"
)
<
0
{
base
=
base
*
0.99999
// Safety value to make sure we update the version penalties every time we update the host.
}
// This needs to be "less than the current version" - anything less than the current version should get a penalty.
if
build
.
VersionCmp
(
entry
.
Version
,
"1.5.6"
)
<
0
{
base
=
base
*
0.99
// Slight penalty against slightly out of date hosts.
}
if
build
.
VersionCmp
(
entry
.
Version
,
"1.5.5"
)
<
0
{
base
=
base
*
0.90
// 10% penalty for hosts without the virtual sector fix
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment