Commit 3f64d005 authored by Christopher Schinnerl's avatar Christopher Schinnerl Committed by Christopher Schinnerl

Pump version to 1.3.4

parent effd343c
Pipeline #29054287 passed with stages
in 43 minutes and 24 seconds
# [![Sia Logo](http://sia.tech/img/svg/sia-green-logo.svg)](http://sia.tech) v1.3.3 (Capricorn) # [![Sia Logo](http://sia.tech/img/svg/sia-green-logo.svg)](http://sia.tech) v1.3.4 (Capricorn)
[![Build Status](https://travis-ci.org/NebulousLabs/Sia.svg?branch=master)](https://travis-ci.org/NebulousLabs/Sia) [![Build Status](https://travis-ci.org/NebulousLabs/Sia.svg?branch=master)](https://travis-ci.org/NebulousLabs/Sia)
[![GoDoc](https://godoc.org/gitlab.com/NebulousLabs/Sia?status.svg)](https://godoc.org/gitlab.com/NebulousLabs/Sia) [![GoDoc](https://godoc.org/gitlab.com/NebulousLabs/Sia?status.svg)](https://godoc.org/gitlab.com/NebulousLabs/Sia)
......
...@@ -14,7 +14,7 @@ const ( ...@@ -14,7 +14,7 @@ const (
MaxEncodedVersionLength = 100 MaxEncodedVersionLength = 100
// Version is the current version of siad. // Version is the current version of siad.
Version = "1.3.3" Version = "1.3.4"
) )
// IsVersion returns whether str is a valid version number. // IsVersion returns whether str is a valid version number.
......
...@@ -233,7 +233,12 @@ func versionAdjustments(entry modules.HostDBEntry) float64 { ...@@ -233,7 +233,12 @@ func versionAdjustments(entry modules.HostDBEntry) float64 {
if build.VersionCmp(entry.Version, "1.4.0") < 0 { if build.VersionCmp(entry.Version, "1.4.0") < 0 {
base = base * 0.99999 // Safety value to make sure we update the version penalties every time we update the host. base = base * 0.99999 // Safety value to make sure we update the version penalties every time we update the host.
} }
if build.VersionCmp(entry.Version, "1.3.2") < 0 { // minus 10% for being below the most recent version.
if build.VersionCmp(entry.Version, "1.3.4") < 0 {
base = base * 0.9
}
// minus another 10% for being below the previous version.
if build.VersionCmp(entry.Version, "1.3.3") < 0 {
base = base * 0.9 base = base * 0.9
} }
// we shouldn't use pre hardfork hosts // we shouldn't use pre hardfork hosts
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment