Verified Commit 96895485 authored by David Vorick's avatar David Vorick Committed by Luke Champine

set ASIC hardfork constants and enable updates

parent 419e3f2a
Pipeline #33168679 passed with stages
in 27 minutes and 39 seconds
......@@ -3,6 +3,9 @@ Version History
Oct 2018:
v1.3.6 (patch release)
- Enable ASIC hardfork
v1.3.5 (patch release)
- Add offline signing functionality
- Overhaul hostdb weighting
......
......@@ -14,7 +14,7 @@ const (
MaxEncodedVersionLength = 100
// Version is the current version of siad.
Version = "1.3.5"
Version = "1.3.6"
)
// ReleaseTag contains the release tag, such as "rc3". It is supplied at build
......
......@@ -244,7 +244,7 @@ func (srv *Server) daemonUpdateHandlerGET(w http.ResponseWriter, _ *http.Request
}
latestVersion := release.TagName[1:] // delete leading 'v'
api.WriteJSON(w, UpdateInfo{
Available: build.VersionCmp(latestVersion, build.Version) > 0 && false,
Available: build.VersionCmp(latestVersion, build.Version) > 0,
Version: latestVersion,
})
}
......
......@@ -21,12 +21,12 @@ var (
// ASICHardforkFactor is the factor by which the hashrate of targeted
// ASICs will be reduced.
ASICHardforkFactor = uint64(1)
ASICHardforkFactor = uint64(1009)
// ASICHardforkReplayProtectionPrefix is a byte that prefixes
// SiacoinInputs and SiafundInputs when calculating SigHashes to protect
// against replay attacks.
ASICHardforkReplayProtectionPrefix = []byte(nil)
ASICHardforkReplayProtectionPrefix = []byte{0}
// BlockFrequency is the desired number of seconds that
// should elapse, on average, between successive Blocks.
......
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