diff options
author | psychocrypt <psychocrypt@users.noreply.github.com> | 2017-11-16 12:12:40 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-11-16 12:12:40 +0100 |
commit | 1dc874c542a23c36dd65ea0f5b9cb65e3c3a572a (patch) | |
tree | bbebd1f9969dbd09283fba5cb3ef9fc170dc0400 /xmrstak/jconf.cpp | |
parent | 2c3a3484757f242cf20b8e2ca2d89cfe01f64888 (diff) | |
parent | 41eb0ad64e6d003368ccf8f3212f190a829aae10 (diff) | |
download | xmr-stak-1dc874c542a23c36dd65ea0f5b9cb65e3c3a572a.zip xmr-stak-1dc874c542a23c36dd65ea0f5b9cb65e3c3a572a.tar.gz |
Merge pull request #115 from fireice-uk/topic-net-ext
Network extensions
Diffstat (limited to 'xmrstak/jconf.cpp')
-rw-r--r-- | xmrstak/jconf.cpp | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/xmrstak/jconf.cpp b/xmrstak/jconf.cpp index 6d0f8ae..a617f96 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 }, @@ -193,7 +194,7 @@ const std::string jconf::GetCurrency() bool jconf::IsCurrencyMonero() { - if(xmrstak::strcmp_i(::jconf::inst()->GetCurrency(), "monero")) + if(xmrstak::strcmp_i(GetCurrency(), "monero")) { return true; } @@ -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(); |