Page MenuHomePhabricator

D477.diff
No OneTemporary

D477.diff

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=<n>",
- strprintf(_("UAHF activation (integer) POSIX "
- "time, seconds since epoch (default: %u)"),
- DEFAULT_UAHF_START_TIME));
+ strUsage += HelpMessageOpt(
+ "-uahfstarttime=<n>",
+ 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

File Metadata

Mime Type
text/plain
Expires
Sat, Mar 1, 09:25 (3 h, 51 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
5187195
Default Alt Text
D477.diff (1 KB)

Event Timeline