Avoid redundant redeclaration of GetWarnings(const string&)
[bitcoinplatinum.git] / src / warnings.h
blobfd0ca5394233c92fbaeab10a5f80a75edf63a835
1 // Copyright (c) 2009-2010 Satoshi Nakamoto
2 // Copyright (c) 2009-2016 The Bitcoin Core developers
3 // Distributed under the MIT software license, see the accompanying
4 // file COPYING or http://www.opensource.org/licenses/mit-license.php.
6 #ifndef BITCOIN_WARNINGS_H
7 #define BITCOIN_WARNINGS_H
9 #include <stdlib.h>
10 #include <string>
12 void SetMiscWarning(const std::string& strWarning);
13 void SetfLargeWorkForkFound(bool flag);
14 bool GetfLargeWorkForkFound();
15 void SetfLargeWorkInvalidChainFound(bool flag);
16 bool GetfLargeWorkInvalidChainFound();
17 /** Format a string that describes several potential problems detected by the core.
18 * strFor can have three values:
19 * - "rpc": get critical warnings, which should put the client in safe mode if non-empty
20 * - "statusbar": get all warnings
21 * - "gui": get all warnings, translated (where possible) for GUI
22 * This function only returns the highest priority warning of the set selected by strFor.
24 std::string GetWarnings(const std::string& strFor);
26 static const bool DEFAULT_TESTSAFEMODE = false;
28 #endif // BITCOIN_WARNINGS_H