diff --git a/src/init.cpp b/src/init.cpp --- a/src/init.cpp +++ b/src/init.cpp @@ -855,11 +855,11 @@ } strUsage += HelpMessageGroup(_("Hard Fork options:")); - strUsage += - HelpMessageOpt("-uahfstarttime=", - strprintf(_("UAHF activation (integer) POSIX " - "time, seconds since epoch (default: %u)"), - DEFAULT_UAHF_START_TIME)); + strUsage += HelpMessageOpt( + "-uahfstarttime=", + strprintf(_("(Deprecated) UAHF activation (integer) " + "POSIX time, seconds since epoch (default: %u)"), + DEFAULT_UAHF_START_TIME)); return strUsage; } @@ -1408,14 +1408,17 @@ return InitError(msg); } - const int64_t nProposedUAHFStartTime = + const int64_t uahfFromArgs = GetArg("-uahfstarttime", DEFAULT_UAHF_START_TIME); - if (!config.SetUAHFStartTime(nProposedUAHFStartTime)) { - return InitError( - strprintf(_("Unable to set uahfstarttime to the value (%d)"), - nProposedUAHFStartTime)); - assert(nProposedUAHFStartTime == config.GetUAHFStartTime()); + if (uahfFromArgs != int64_t(DEFAULT_UAHF_START_TIME)) { + LogPrintf("WARNING: Deprecated use of -uahfstarttime=%d parameter\n", + uahfFromArgs); + } + if (!config.SetUAHFStartTime(uahfFromArgs)) { + return InitError(strprintf( + _("Unable to set uahfstarttime to the value (%d)"), uahfFromArgs)); } + assert(config.GetUAHFStartTime() == uahfFromArgs); // block pruning; get the amount of disk space (in MiB) to allot for block & // undo files