summaryrefslogtreecommitdiffstats
path: root/xmrstak/jconf.cpp
diff options
context:
space:
mode:
authorUnknown <fireice2@o2.pl>2017-11-14 20:22:31 +0000
committerUnknown <fireice2@o2.pl>2017-11-14 20:22:31 +0000
commit41eb0ad64e6d003368ccf8f3212f190a829aae10 (patch)
tree347bd2f368f7553cc0a04fae985779f081f126d2 /xmrstak/jconf.cpp
parent608139ccde751eb053b54e8d41899aec9208017d (diff)
downloadxmr-stak-41eb0ad64e6d003368ccf8f3212f190a829aae10.zip
xmr-stak-41eb0ad64e6d003368ccf8f3212f190a829aae10.tar.gz
Print motd on console and web ui
Diffstat (limited to 'xmrstak/jconf.cpp')
-rw-r--r--xmrstak/jconf.cpp8
1 files changed, 7 insertions, 1 deletions
diff --git a/xmrstak/jconf.cpp b/xmrstak/jconf.cpp
index 4eb3a70..a9f484f 100644
--- a/xmrstak/jconf.cpp
+++ b/xmrstak/jconf.cpp
@@ -51,7 +51,7 @@ using namespace rapidjson;
* This enum needs to match index in oConfigValues, otherwise we will get a runtime error
*/
enum configEnum {
- aPoolList, bTlsSecureAlgo, sCurrency, iCallTimeout, iNetRetry, iGiveUpLimit, iVerboseLevel, iAutohashTime,
+ aPoolList, bTlsSecureAlgo, sCurrency, iCallTimeout, iNetRetry, iGiveUpLimit, iVerboseLevel, bPrintMotd, iAutohashTime,
bFlushStdout, bDaemonMode, sOutputFile, iHttpdPort, sHttpLogin, sHttpPass, bPreferIpv4, bAesOverride, sUseSlowMem
};
@@ -71,6 +71,7 @@ configVal oConfigValues[] = {
{ iNetRetry, "retry_time", kNumberType },
{ iGiveUpLimit, "giveup_limit", kNumberType },
{ iVerboseLevel, "verbose_level", kNumberType },
+ { bPrintMotd, "print_motd", kTrueType },
{ iAutohashTime, "h_print_time", kNumberType },
{ bFlushStdout, "flush_stdout", kTrueType},
{ bDaemonMode, "daemon_mode", kTrueType },
@@ -228,6 +229,11 @@ uint64_t jconf::GetVerboseLevel()
return prv->configValues[iVerboseLevel]->GetUint64();
}
+bool jconf::PrintMotd()
+{
+ return prv->configValues[bPrintMotd]->GetBool();
+}
+
uint64_t jconf::GetAutohashTime()
{
return prv->configValues[iAutohashTime]->GetUint64();
OpenPOWER on IntegriCloud