Implement automatic shutdown of deprecated Zcash versions

Closes #2274.
This commit is contained in:
Jack Grigg
2017-04-25 18:06:29 +12:00
parent 20d61ac0ea
commit 5b3bc9716e
10 changed files with 203 additions and 2 deletions

View File

@@ -100,7 +100,7 @@ const std::string CLIENT_NAME("MagicBean");
const std::string CLIENT_BUILD(BUILD_DESC CLIENT_VERSION_SUFFIX);
const std::string CLIENT_DATE(BUILD_DATE);
static std::string FormatVersion(int nVersion)
std::string FormatVersion(int nVersion)
{
if (nVersion % 100 < 25)
return strprintf("%d.%d.%d-beta%d", nVersion / 1000000, (nVersion / 10000) % 100, (nVersion / 100) % 100, (nVersion % 100)+1);