@@ -3979,29 +3979,34 @@ std::string GetWarnings(const std::string& strFor)
3979
3979
int nPriority = 0 ;
3980
3980
string strStatusBar;
3981
3981
string strRPC;
3982
+ string strGUI;
3982
3983
3983
- if (!CLIENT_VERSION_IS_RELEASE)
3984
- strStatusBar = _ (" This is a pre-release test build - use at your own risk - do not use for mining or merchant applications" );
3984
+ if (!CLIENT_VERSION_IS_RELEASE) {
3985
+ strStatusBar = " This is a pre-release test build - use at your own risk - do not use for mining or merchant applications" ;
3986
+ strGUI = _ (" This is a pre-release test build - use at your own risk - do not use for mining or merchant applications" );
3987
+ }
3985
3988
3986
3989
if (GetBoolArg (" -testsafemode" , DEFAULT_TESTSAFEMODE))
3987
- strStatusBar = strRPC = " testsafemode enabled" ;
3990
+ strStatusBar = strRPC = strGUI = " testsafemode enabled" ;
3988
3991
3989
3992
// Misc warnings like out of disk space and clock is wrong
3990
3993
if (strMiscWarning != " " )
3991
3994
{
3992
3995
nPriority = 1000 ;
3993
- strStatusBar = strMiscWarning;
3996
+ strStatusBar = strGUI = strMiscWarning;
3994
3997
}
3995
3998
3996
3999
if (fLargeWorkForkFound )
3997
4000
{
3998
4001
nPriority = 2000 ;
3999
- strStatusBar = strRPC = _ (" Warning: The network does not appear to fully agree! Some miners appear to be experiencing issues." );
4002
+ strStatusBar = strRPC = " Warning: The network does not appear to fully agree! Some miners appear to be experiencing issues." ;
4003
+ strGUI = _ (" Warning: The network does not appear to fully agree! Some miners appear to be experiencing issues." );
4000
4004
}
4001
4005
else if (fLargeWorkInvalidChainFound )
4002
4006
{
4003
4007
nPriority = 2000 ;
4004
- 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." );
4008
+ 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." ;
4009
+ strGUI = _ (" Warning: We do not appear to fully agree with our peers! You may need to upgrade, or other nodes may need to upgrade." );
4005
4010
}
4006
4011
4007
4012
// Alerts
@@ -4013,12 +4018,14 @@ std::string GetWarnings(const std::string& strFor)
4013
4018
if (alert.AppliesToMe () && alert.nPriority > nPriority)
4014
4019
{
4015
4020
nPriority = alert.nPriority ;
4016
- strStatusBar = alert.strStatusBar ;
4021
+ strStatusBar = strGUI = alert.strStatusBar ;
4017
4022
}
4018
4023
}
4019
4024
}
4020
4025
4021
- if (strFor == " statusbar" )
4026
+ if (strFor == " gui" )
4027
+ return strGUI;
4028
+ else if (strFor == " statusbar" )
4022
4029
return strStatusBar;
4023
4030
else if (strFor == " rpc" )
4024
4031
return strRPC;
0 commit comments