9
9
#include < util/system.h>
10
10
#include < util/translation.h>
11
11
12
- static RecursiveMutex cs_warnings ;
13
- static std::string strMiscWarning GUARDED_BY (cs_warnings );
14
- static bool fLargeWorkForkFound GUARDED_BY (cs_warnings ) = false;
15
- static bool fLargeWorkInvalidChainFound GUARDED_BY (cs_warnings ) = false;
12
+ static Mutex g_warnings_mutex ;
13
+ static std::string strMiscWarning GUARDED_BY (g_warnings_mutex );
14
+ static bool fLargeWorkForkFound GUARDED_BY (g_warnings_mutex ) = false;
15
+ static bool fLargeWorkInvalidChainFound GUARDED_BY (g_warnings_mutex ) = false;
16
16
17
17
void SetMiscWarning (const std::string& strWarning)
18
18
{
19
- LOCK (cs_warnings );
19
+ LOCK (g_warnings_mutex );
20
20
strMiscWarning = strWarning;
21
21
}
22
22
23
23
void SetfLargeWorkForkFound (bool flag)
24
24
{
25
- LOCK (cs_warnings );
25
+ LOCK (g_warnings_mutex );
26
26
fLargeWorkForkFound = flag;
27
27
}
28
28
29
29
bool GetfLargeWorkForkFound ()
30
30
{
31
- LOCK (cs_warnings );
31
+ LOCK (g_warnings_mutex );
32
32
return fLargeWorkForkFound ;
33
33
}
34
34
35
35
void SetfLargeWorkInvalidChainFound (bool flag)
36
36
{
37
- LOCK (cs_warnings );
37
+ LOCK (g_warnings_mutex );
38
38
fLargeWorkInvalidChainFound = flag;
39
39
}
40
40
@@ -44,7 +44,7 @@ std::string GetWarnings(bool verbose)
44
44
std::string warnings_verbose;
45
45
const std::string warning_separator = " <hr />" ;
46
46
47
- LOCK (cs_warnings );
47
+ LOCK (g_warnings_mutex );
48
48
49
49
// Pre-release build warning
50
50
if (!CLIENT_VERSION_IS_RELEASE) {
0 commit comments