mirror of
https://github.com/dashpay/dash.git
synced 2024-12-29 13:59:06 +01:00
eadd1f5bf2
13bb5cae31 Docs: fix GetWarnings docs to reflect behavior (Ben Woosley) Pull request description: In "gui", it returns all warnings, joined by a separator In "statusbar", it returns the last warning set which seems notionally to be the most important, though that is debatable Tree-SHA512: 5fc0dc68d143a040b7b893b7176188e2b064c2cf1d559420906e4de636e16e9ab7451a1b87603020a7a8f66d6b94f4ee6c7da2697efad879f9e6de9c0e0c9ac1
25 lines
913 B
C++
25 lines
913 B
C++
// 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);
|
|
/** Format a string that describes several potential problems detected by the core.
|
|
* @param[in] strFor can have the following values:
|
|
* - "statusbar": get the most important warning
|
|
* - "gui": get all warnings, translated (where possible) for GUI, separated by <hr />
|
|
* @returns the warning string selected by strFor
|
|
*/
|
|
std::string GetWarnings(const std::string& strFor);
|
|
|
|
#endif // BITCOIN_WARNINGS_H
|