aboutsummaryrefslogtreecommitdiff
path: root/src/warnings.cpp
diff options
context:
space:
mode:
authorWladimir J. van der Laan <[email protected]>2018-04-27 09:25:42 +0200
committerWladimir J. van der Laan <[email protected]>2018-04-27 09:27:52 +0200
commitd8e9a2ac74e1071c9a92b9858b7ed3143413ee94 (patch)
tree3a5e8bf1b02e5340b79c6d637a7c1c551c7dfbb2 /src/warnings.cpp
parentrpc: Move RPC_FORBIDDEN_BY_SAFE_MODE code to reserved section (diff)
downloaddiscoin-d8e9a2ac74e1071c9a92b9858b7ed3143413ee94.tar.xz
discoin-d8e9a2ac74e1071c9a92b9858b7ed3143413ee94.zip
Remove "rpc" category from GetWarnings
No longer used after removing safe mode. This function can likely be simplified more, but I'll leave that for later to make this easy to review.
Diffstat (limited to 'src/warnings.cpp')
-rw-r--r--src/warnings.cpp7
1 files changed, 2 insertions, 5 deletions
diff --git a/src/warnings.cpp b/src/warnings.cpp
index 8eeaec1cb..dc4e6e484 100644
--- a/src/warnings.cpp
+++ b/src/warnings.cpp
@@ -40,7 +40,6 @@ void SetfLargeWorkInvalidChainFound(bool flag)
std::string GetWarnings(const std::string& strFor)
{
std::string strStatusBar;
- std::string strRPC;
std::string strGUI;
const std::string uiAlertSeperator = "<hr />";
@@ -60,12 +59,12 @@ std::string GetWarnings(const std::string& strFor)
if (fLargeWorkForkFound)
{
- strStatusBar = strRPC = "Warning: The network does not appear to fully agree! Some miners appear to be experiencing issues.";
+ strStatusBar = "Warning: The network does not appear to fully agree! Some miners appear to be experiencing issues.";
strGUI += (strGUI.empty() ? "" : uiAlertSeperator) + _("Warning: The network does not appear to fully agree! Some miners appear to be experiencing issues.");
}
else if (fLargeWorkInvalidChainFound)
{
- strStatusBar = strRPC = "Warning: We do not appear to fully agree with our peers! You may need to upgrade, or other nodes may need to upgrade.";
+ strStatusBar = "Warning: We do not appear to fully agree with our peers! You may need to upgrade, or other nodes may need to upgrade.";
strGUI += (strGUI.empty() ? "" : uiAlertSeperator) + _("Warning: We do not appear to fully agree with our peers! You may need to upgrade, or other nodes may need to upgrade.");
}
@@ -73,8 +72,6 @@ std::string GetWarnings(const std::string& strFor)
return strGUI;
else if (strFor == "statusbar")
return strStatusBar;
- else if (strFor == "rpc")
- return strRPC;
assert(!"GetWarnings(): invalid parameter");
return "error";
}