bump version to v1.2.2

parent 0f0752e4
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)
......
# [![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)
......
......@@ -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
......
......@@ -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.
}
......
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