[tests] Add -blocknotify functional test
[bitcoinplatinum.git] / src / warnings.h
blobe8e982c0e306eb6abc010b444bc9bfbedd16631d
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 /** Format a string that describes several potential problems detected by the core.
17 * strFor can have three values:
18 * - "rpc": get critical warnings, which should put the client in safe mode if non-empty
19 * - "statusbar": get all warnings
20 * - "gui": get all warnings, translated (where possible) for GUI
21 * This function only returns the highest priority warning of the set selected by strFor.
23 std::string GetWarnings(const std::string& strFor);
25 static const bool DEFAULT_TESTSAFEMODE = false;
27 #endif // BITCOIN_WARNINGS_H