From c63198f1c787d69052d6332c5e52118f58eacf56 Mon Sep 17 00:00:00 2001 From: Gregory Maxwell Date: Tue, 29 Nov 2016 01:00:11 +0000 Subject: Make QT runawayException call GetWarnings instead of directly access strMiscWarning. This is a first step in avoiding racy accesses to strMiscWarning. The change required moving GetWarnings and related globals to util. --- src/util.h | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src/util.h') diff --git a/src/util.h b/src/util.h index e8aa266f2..edc190e1e 100644 --- a/src/util.h +++ b/src/util.h @@ -46,7 +46,12 @@ extern std::map > mapMultiArgs; extern bool fDebug; extern bool fPrintToConsole; extern bool fPrintToDebugLog; + +static const bool DEFAULT_TESTSAFEMODE = false; extern std::string strMiscWarning; +extern bool fLargeWorkForkFound; +extern bool fLargeWorkInvalidChainFound; + extern bool fLogTimestamps; extern bool fLogTimeMicros; extern bool fLogIPs; @@ -224,4 +229,6 @@ template void TraceThread(const char* name, Callable func) std::string CopyrightHolders(const std::string& strPrefix); +std::string GetWarnings(const std::string& strFor); + #endif // BITCOIN_UTIL_H -- cgit v1.2.3