From 44ada253846ae42746e41edb569840e814fb32fa Mon Sep 17 00:00:00 2001 From: lukechampine Date: Sun, 21 May 2017 20:46:53 -0400 Subject: [PATCH] bump version to v1.2.2 --- CHANGELOG.md | 7 +++++++ README.md | 2 +- build/version.go | 2 +- modules/renter/hostdb/hostweight.go | 5 ++++- 4 files changed, 13 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 928efd845e..4ce369b559 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,13 @@ Version History --------------- +May 2017: + +v1.2.2 (patch release) +- Faster + smaller wallet database +- Gracefully handle missing storage folders +- >2500 lines of new testing + bug fixes + April 2017: v1.2.1 (patch release) diff --git a/README.md b/README.md index 05559c0592..60373073aa 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -# [![Sia Logo](http://sia.tech/img/svg/sia-green-logo.svg)](http://sia.tech) v1.2.1 (Blue Moon) +# [![Sia Logo](http://sia.tech/img/svg/sia-green-logo.svg)](http://sia.tech) v1.2.2 (Blue Moon) [![Build Status](https://travis-ci.org/NebulousLabs/Sia.svg?branch=master)](https://travis-ci.org/NebulousLabs/Sia) [![GoDoc](https://godoc.org/github.com/NebulousLabs/Sia?status.svg)](https://godoc.org/github.com/NebulousLabs/Sia) diff --git a/build/version.go b/build/version.go index 5c52d742d2..3f7ffb0b08 100644 --- a/build/version.go +++ b/build/version.go @@ -7,7 +7,7 @@ import ( const ( // Version is the current version of siad. - Version = "1.2.1" + Version = "1.2.2" // MaxEncodedVersionLength is the maximum length of a version string encoded // with the encode package. 100 is much larger than any version number we send diff --git a/modules/renter/hostdb/hostweight.go b/modules/renter/hostdb/hostweight.go index 25dde1c2a3..f18d356d93 100644 --- a/modules/renter/hostdb/hostweight.go +++ b/modules/renter/hostdb/hostweight.go @@ -195,9 +195,12 @@ func storageRemainingAdjustments(entry modules.HostDBEntry) float64 { // version reported by the host. func versionAdjustments(entry modules.HostDBEntry) float64 { base := float64(1) - if build.VersionCmp(entry.Version, "1.2.2") < 0 { + if build.VersionCmp(entry.Version, "1.3.0") < 0 { 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.2.2") < 0 { + base = base * 0.9 + } if build.VersionCmp(entry.Version, "1.2.1") < 0 { base = base / 2 // 2x total penalty. }