Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F13115038
D477.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
1 KB
Subscribers
None
D477.diff
View Options
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
Details
Attached
Mime Type
text/plain
Expires
Sat, Mar 1, 09:25 (1 h, 4 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
5187195
Default Alt Text
D477.diff (1 KB)
Attached To
D477: Mark -uahfstarttime parameter as deprecated and issue a log warning if set to anything other than default
Event Timeline
Log In to Comment