2016-12-19 12:38:35 +01:00
|
|
|
// Copyright (c) 2009-2010 Satoshi Nakamoto
|
2020-12-31 18:50:11 +01:00
|
|
|
// Copyright (c) 2009-2020 The Bitcoin Core developers
|
2016-12-19 12:38:35 +01:00
|
|
|
// 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 <string>
|
|
|
|
|
2020-06-10 15:50:50 +02:00
|
|
|
struct bilingual_str;
|
|
|
|
|
|
|
|
void SetMiscWarning(const bilingual_str& warning);
|
2016-12-19 12:38:35 +01:00
|
|
|
void SetfLargeWorkInvalidChainFound(bool flag);
|
2017-07-19 11:53:20 +02:00
|
|
|
/** Format a string that describes several potential problems detected by the core.
|
2019-12-16 22:07:12 +01:00
|
|
|
* @param[in] verbose bool
|
2020-06-10 15:50:50 +02:00
|
|
|
* - if true, get all warnings separated by <hr />
|
2019-12-16 22:07:12 +01:00
|
|
|
* - if false, get the most important warning
|
|
|
|
* @returns the warning string
|
2017-07-19 11:53:20 +02:00
|
|
|
*/
|
2020-06-10 15:50:50 +02:00
|
|
|
bilingual_str GetWarnings(bool verbose);
|
2016-12-19 12:38:35 +01:00
|
|
|
|
|
|
|
#endif // BITCOIN_WARNINGS_H
|