Remove useless argument to AlertNotify.
It is always 'true', so useless.
This commit is contained in:
parent
46880ed2fd
commit
b02119e463
1 changed files with 6 additions and 9 deletions
13
src/main.cpp
13
src/main.cpp
|
@ -1593,7 +1593,7 @@ bool fLargeWorkForkFound = false;
|
|||
bool fLargeWorkInvalidChainFound = false;
|
||||
CBlockIndex *pindexBestForkTip = NULL, *pindexBestForkBase = NULL;
|
||||
|
||||
static void AlertNotify(const std::string& strMessage, bool fThread)
|
||||
static void AlertNotify(const std::string& strMessage)
|
||||
{
|
||||
uiInterface.NotifyAlertChanged();
|
||||
std::string strCmd = GetArg("-alertnotify", "");
|
||||
|
@ -1607,10 +1607,7 @@ static void AlertNotify(const std::string& strMessage, bool fThread)
|
|||
safeStatus = singleQuote+safeStatus+singleQuote;
|
||||
boost::replace_all(strCmd, "%s", safeStatus);
|
||||
|
||||
if (fThread)
|
||||
boost::thread t(runCommand, strCmd); // thread runs free
|
||||
else
|
||||
runCommand(strCmd);
|
||||
}
|
||||
|
||||
void CheckForkWarningConditions()
|
||||
|
@ -1632,7 +1629,7 @@ void CheckForkWarningConditions()
|
|||
{
|
||||
std::string warning = std::string("'Warning: Large-work fork detected, forking after block ") +
|
||||
pindexBestForkBase->phashBlock->ToString() + std::string("'");
|
||||
AlertNotify(warning, true);
|
||||
AlertNotify(warning);
|
||||
}
|
||||
if (pindexBestForkTip && pindexBestForkBase)
|
||||
{
|
||||
|
@ -2163,7 +2160,7 @@ void PartitionCheck(bool (*initialDownloadCheck)(), CCriticalSection& cs, const
|
|||
if (!strWarning.empty())
|
||||
{
|
||||
strMiscWarning = strWarning;
|
||||
AlertNotify(strWarning, true);
|
||||
AlertNotify(strWarning);
|
||||
lastAlertTime = now;
|
||||
}
|
||||
}
|
||||
|
@ -2598,7 +2595,7 @@ void static UpdateTip(CBlockIndex *pindexNew, const CChainParams& chainParams) {
|
|||
if (state == THRESHOLD_ACTIVE) {
|
||||
strMiscWarning = strprintf(_("Warning: unknown new rules activated (versionbit %i)"), bit);
|
||||
if (!fWarned) {
|
||||
AlertNotify(strMiscWarning, true);
|
||||
AlertNotify(strMiscWarning);
|
||||
fWarned = true;
|
||||
}
|
||||
} else {
|
||||
|
@ -2620,7 +2617,7 @@ void static UpdateTip(CBlockIndex *pindexNew, const CChainParams& chainParams) {
|
|||
// strMiscWarning is read by GetWarnings(), called by Qt and the JSON-RPC code to warn the user:
|
||||
strMiscWarning = _("Warning: Unknown block versions being mined! It's possible unknown rules are in effect");
|
||||
if (!fWarned) {
|
||||
AlertNotify(strMiscWarning, true);
|
||||
AlertNotify(strMiscWarning);
|
||||
fWarned = true;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue