mirror of
https://github.com/dashpay/dash.git
synced 2024-12-27 21:12:48 +01:00
Avoid redundant redeclaration of GetWarnings(const string&)
std::string GetWarnings(const std::string& strFor) is declared in warnings.h and defined in warnings.cpp.
This commit is contained in:
parent
7b6e8bc442
commit
e0d459264f
@ -18,6 +18,7 @@
|
|||||||
#include "txmempool.h"
|
#include "txmempool.h"
|
||||||
#include "ui_interface.h"
|
#include "ui_interface.h"
|
||||||
#include "util.h"
|
#include "util.h"
|
||||||
|
#include "warnings.h"
|
||||||
|
|
||||||
#include <stdint.h>
|
#include <stdint.h>
|
||||||
|
|
||||||
|
@ -24,6 +24,7 @@
|
|||||||
#include "util.h"
|
#include "util.h"
|
||||||
#include "utilstrencodings.h"
|
#include "utilstrencodings.h"
|
||||||
#include "validationinterface.h"
|
#include "validationinterface.h"
|
||||||
|
#include "warnings.h"
|
||||||
|
|
||||||
#include <memory>
|
#include <memory>
|
||||||
#include <stdint.h>
|
#include <stdint.h>
|
||||||
|
@ -21,6 +21,7 @@
|
|||||||
#include "wallet/wallet.h"
|
#include "wallet/wallet.h"
|
||||||
#include "wallet/walletdb.h"
|
#include "wallet/walletdb.h"
|
||||||
#endif
|
#endif
|
||||||
|
#include "warnings.h"
|
||||||
|
|
||||||
#include <stdint.h>
|
#include <stdint.h>
|
||||||
#ifdef HAVE_MALLOC_INFO
|
#ifdef HAVE_MALLOC_INFO
|
||||||
|
@ -18,7 +18,7 @@
|
|||||||
#include "util.h"
|
#include "util.h"
|
||||||
#include "utilstrencodings.h"
|
#include "utilstrencodings.h"
|
||||||
#include "version.h"
|
#include "version.h"
|
||||||
|
#include "warnings.h"
|
||||||
|
|
||||||
#include <univalue.h>
|
#include <univalue.h>
|
||||||
|
|
||||||
|
@ -268,14 +268,6 @@ void UnloadBlockIndex();
|
|||||||
void ThreadScriptCheck();
|
void ThreadScriptCheck();
|
||||||
/** Check whether we are doing an initial block download (synchronizing from disk or network) */
|
/** Check whether we are doing an initial block download (synchronizing from disk or network) */
|
||||||
bool IsInitialBlockDownload();
|
bool IsInitialBlockDownload();
|
||||||
/** Format a string that describes several potential problems detected by the core.
|
|
||||||
* strFor can have three values:
|
|
||||||
* - "rpc": get critical warnings, which should put the client in safe mode if non-empty
|
|
||||||
* - "statusbar": get all warnings
|
|
||||||
* - "gui": get all warnings, translated (where possible) for GUI
|
|
||||||
* This function only returns the highest priority warning of the set selected by strFor.
|
|
||||||
*/
|
|
||||||
std::string GetWarnings(const std::string& strFor);
|
|
||||||
/** Retrieve a transaction (from memory pool, or from disk, if possible) */
|
/** Retrieve a transaction (from memory pool, or from disk, if possible) */
|
||||||
bool GetTransaction(const uint256 &hash, CTransactionRef &tx, const Consensus::Params& params, uint256 &hashBlock, bool fAllowSlow = false);
|
bool GetTransaction(const uint256 &hash, CTransactionRef &tx, const Consensus::Params& params, uint256 &hashBlock, bool fAllowSlow = false);
|
||||||
/** Find the best known block, and make it the tip of the block chain */
|
/** Find the best known block, and make it the tip of the block chain */
|
||||||
|
@ -14,6 +14,13 @@ void SetfLargeWorkForkFound(bool flag);
|
|||||||
bool GetfLargeWorkForkFound();
|
bool GetfLargeWorkForkFound();
|
||||||
void SetfLargeWorkInvalidChainFound(bool flag);
|
void SetfLargeWorkInvalidChainFound(bool flag);
|
||||||
bool GetfLargeWorkInvalidChainFound();
|
bool GetfLargeWorkInvalidChainFound();
|
||||||
|
/** Format a string that describes several potential problems detected by the core.
|
||||||
|
* strFor can have three values:
|
||||||
|
* - "rpc": get critical warnings, which should put the client in safe mode if non-empty
|
||||||
|
* - "statusbar": get all warnings
|
||||||
|
* - "gui": get all warnings, translated (where possible) for GUI
|
||||||
|
* This function only returns the highest priority warning of the set selected by strFor.
|
||||||
|
*/
|
||||||
std::string GetWarnings(const std::string& strFor);
|
std::string GetWarnings(const std::string& strFor);
|
||||||
|
|
||||||
static const bool DEFAULT_TESTSAFEMODE = false;
|
static const bool DEFAULT_TESTSAFEMODE = false;
|
||||||
|
Loading…
Reference in New Issue
Block a user