diff options
author | Gregory Maxwell <greg@xiph.org> | 2016-11-30 06:07:42 +0000 |
---|---|---|
committer | Gregory Maxwell <greg@xiph.org> | 2016-12-03 07:17:34 +0000 |
commit | 749be013f5cba0bbb01f1f89df77106aea5a4cc1 (patch) | |
tree | cc7f3f435e14003091859ad654f7bb0b3aab225a /src/warnings.h | |
parent | e3ba0ef95636290a3bb597ddd25d13ea13b034aa (diff) |
Move GetWarnings() into its own file.
Diffstat (limited to 'src/warnings.h')
-rw-r--r-- | src/warnings.h | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/src/warnings.h b/src/warnings.h new file mode 100644 index 0000000000..a7aa657426 --- /dev/null +++ b/src/warnings.h @@ -0,0 +1,21 @@ +// Copyright (c) 2009-2010 Satoshi Nakamoto +// Copyright (c) 2009-2016 The Bitcoin Core developers +// Distributed under the MIT software license, see the accompanying +// file COPYING or http://www.opensource.org/licenses/mit-license.php. + +#ifndef BITCOIN_WARNINGS_H +#define BITCOIN_WARNINGS_H + +#include <stdlib.h> +#include <string> + +void SetMiscWarning(const std::string& strWarning); +void SetfLargeWorkForkFound(bool flag); +bool GetfLargeWorkForkFound(); +void SetfLargeWorkInvalidChainFound(bool flag); +bool GetfLargeWorkInvalidChainFound(); +std::string GetWarnings(const std::string& strFor); + +static const bool DEFAULT_TESTSAFEMODE = false; + +#endif // BITCOIN_WARNINGS_H |