Skip to content

Commit

Permalink
Update version strings to 1.0.14-1 and change the name
Browse files Browse the repository at this point in the history
Change DEPRECATION to 26 weeks
  • Loading branch information
wkarshat committed May 9, 2018
1 parent 414168a commit acdd35d
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion src/clientversion.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
* for both bitcoind and bitcoin-core, to make it harder for attackers to
* target servers or GUI users specifically.
*/
const std::string CLIENT_NAME("Pyramiden");
const std::string CLIENT_NAME("Longyearbyen");

/**
* Client version number
Expand Down
10 changes: 5 additions & 5 deletions src/deprecation.h
Original file line number Diff line number Diff line change
Expand Up @@ -6,16 +6,16 @@
#define ZCASH_DEPRECATION_H

// Deprecation policy:
// * Shut down 16 weeks' worth of blocks after the estimated release block height.
// * A warning is shown during the 2 weeks' worth of blocks prior to shut down.
static const int APPROX_RELEASE_HEIGHT = 249000;
static const int WEEKS_UNTIL_DEPRECATION = 16;
// * Shut down 26 weeks' worth of blocks after the estimated release block height.
// * A warning is shown during the 4 weeks' worth of blocks prior to shut down.
static const int APPROX_RELEASE_HEIGHT = 315000;
static const int WEEKS_UNTIL_DEPRECATION = 26;
//Fixing zero day size
static const int DEPRECATION_HEIGHT = APPROX_RELEASE_HEIGHT + (WEEKS_UNTIL_DEPRECATION * 7 * 24 * 30);

// Number of blocks before deprecation to warn users
//Fixing zero day size
static const int DEPRECATION_WARN_LIMIT = 14 * 24 * 30; // 2 weeks
static const int DEPRECATION_WARN_LIMIT = 28 * 24 * 30; // 4 weeks

/**
* Checks whether the node is deprecated based on the current block height, and
Expand Down
2 changes: 1 addition & 1 deletion src/sendalert.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ void ThreadSendAlert()
const std::vector<std::string> useragents = {"Pyramiden", "Longyearbyen", "Barentsburg", "Qaanaaq"};

BOOST_FOREACH(const std::string& useragent, useragents) {
alert.setSubVer.insert(std::string("/"+useragent+":1.0.12/"));
alert.setSubVer.insert(std::string("/"+useragent+":1.0.14-1/"));
}

// Sanity check
Expand Down

0 comments on commit acdd35d

Please sign in to comment.