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 #1822 from NebulousLabs/version
Browse files Browse the repository at this point in the history
bump version to v1.2.2
  • Loading branch information
lukechampine committed May 22, 2017
2 parents 0f0752e + 44ada25 commit 413dae0
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 3 deletions.
7 changes: 7 additions & 0 deletions 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)
Expand Down
2 changes: 1 addition & 1 deletion 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)
Expand Down
2 changes: 1 addition & 1 deletion build/version.go
Expand Up @@ -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
Expand Down
5 changes: 4 additions & 1 deletion modules/renter/hostdb/hostweight.go
Expand Up @@ -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.
}
Expand Down

0 comments on commit 413dae0

Please sign in to comment.