diff options
author | Gregory Maxwell <greg@xiph.org> | 2016-11-29 01:00:11 +0000 |
---|---|---|
committer | Gregory Maxwell <greg@xiph.org> | 2016-12-03 07:17:28 +0000 |
commit | c63198f1c787d69052d6332c5e52118f58eacf56 (patch) | |
tree | 3f2debf1c040c2168f1e38aaf9ffaee738a89a82 /src/util.h | |
parent | 2efcfa5acfacb958973d9e8125e1d81f102e2dfd (diff) |
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.
Diffstat (limited to 'src/util.h')
-rw-r--r-- | src/util.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/util.h b/src/util.h index e8aa266f28..edc190e1e5 100644 --- a/src/util.h +++ b/src/util.h @@ -46,7 +46,12 @@ extern std::map<std::string, std::vector<std::string> > 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 <typename Callable> 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 |