You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

warnings.h 1.0KB

123456789101112131415161718192021222324252627
  1. // Copyright (c) 2009-2010 Satoshi Nakamoto
  2. // Copyright (c) 2009-2016 The Starwels developers
  3. // Distributed under the MIT software license, see the accompanying
  4. // file COPYING or http://www.opensource.org/licenses/mit-license.php.
  5. #ifndef STARWELS_WARNINGS_H
  6. #define STARWELS_WARNINGS_H
  7. #include <stdlib.h>
  8. #include <string>
  9. void SetMiscWarning(const std::string& strWarning);
  10. void SetfLargeWorkForkFound(bool flag);
  11. bool GetfLargeWorkForkFound();
  12. void SetfLargeWorkInvalidChainFound(bool flag);
  13. /** Format a string that describes several potential problems detected by the core.
  14. * strFor can have three values:
  15. * - "rpc": get critical warnings, which should put the client in safe mode if non-empty
  16. * - "statusbar": get all warnings
  17. * - "gui": get all warnings, translated (where possible) for GUI
  18. * This function only returns the highest priority warning of the set selected by strFor.
  19. */
  20. std::string GetWarnings(const std::string& strFor);
  21. static const bool DEFAULT_TESTSAFEMODE = false;
  22. #endif // STARWELS_WARNINGS_H