Skip to content

Commit 0567077

Browse files
committed
softwareexpiry: Move expiry date to early November rather than New Years
1 parent 49a9513 commit 0567077

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

src/clientversion.h

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -45,9 +45,10 @@ std::string CopyrightHolders(const std::string& strPrefix);
4545
/** Returns licensing information (for -version) */
4646
std::string LicenseInfo();
4747

48-
static const int64_t SECONDS_PER_YEAR = 31558060;
49-
static const int POSIX_EPOCH_YEAR = 1970;
50-
static const int64_t DEFAULT_SOFTWARE_EXPIRY = ((COPYRIGHT_YEAR - POSIX_EPOCH_YEAR) * SECONDS_PER_YEAR) + (SECONDS_PER_YEAR * 2);
48+
static constexpr int64_t SECONDS_PER_YEAR = 31558060;
49+
static constexpr int POSIX_EPOCH_YEAR = 1970;
50+
static constexpr int64_t DEFAULT_SOFTWARE_EXPIRY_OFFSET = 26784000; // Around Nov 7
51+
static constexpr int64_t DEFAULT_SOFTWARE_EXPIRY = ((COPYRIGHT_YEAR - POSIX_EPOCH_YEAR) * SECONDS_PER_YEAR) + (SECONDS_PER_YEAR * 2) + DEFAULT_SOFTWARE_EXPIRY_OFFSET;
5152
extern int64_t g_software_expiry;
5253

5354
bool IsThisSoftwareExpired(int64_t nTime);

0 commit comments

Comments
 (0)