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