2016-11-29 22:07:42 -08:00
|
|
|
// Copyright (c) 2009-2010 Satoshi Nakamoto
|
|
|
|
// Copyright (c) 2009-2016 The Bitcoin Core developers
|
2023-01-23 10:31:54 -08:00
|
|
|
// Copyright (c) 2020-2023 The Zcash developers
|
2016-11-29 22:07:42 -08:00
|
|
|
// Distributed under the MIT software license, see the accompanying
|
2020-12-12 16:33:22 -08:00
|
|
|
// file COPYING or https://www.opensource.org/licenses/mit-license.php .
|
2016-11-29 22:07:42 -08:00
|
|
|
|
|
|
|
#ifndef BITCOIN_WARNINGS_H
|
|
|
|
#define BITCOIN_WARNINGS_H
|
|
|
|
|
|
|
|
#include <stdlib.h>
|
|
|
|
#include <string>
|
|
|
|
|
2020-06-12 14:08:00 -07:00
|
|
|
void SetMiscWarning(const std::string& strWarning, int64_t timestamp);
|
2020-06-23 07:47:29 -07:00
|
|
|
std::pair<std::string, int64_t> GetMiscWarning();
|
2016-11-29 22:07:42 -08:00
|
|
|
void SetfLargeWorkForkFound(bool flag);
|
|
|
|
bool GetfLargeWorkForkFound();
|
|
|
|
void SetfLargeWorkInvalidChainFound(bool flag);
|
|
|
|
bool GetfLargeWorkInvalidChainFound();
|
2020-06-23 07:47:29 -07:00
|
|
|
std::pair<std::string, int64_t> GetWarnings(const std::string& strFor);
|
2016-11-29 22:07:42 -08:00
|
|
|
|
|
|
|
static const bool DEFAULT_TESTSAFEMODE = false;
|
|
|
|
|
|
|
|
#endif // BITCOIN_WARNINGS_H
|