diff options
Diffstat (limited to 'src/warnings.h')
-rw-r--r-- | src/warnings.h | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/src/warnings.h b/src/warnings.h index b21e2ea2b8..79dc2ffabf 100644 --- a/src/warnings.h +++ b/src/warnings.h @@ -6,18 +6,17 @@ #ifndef BITCOIN_WARNINGS_H #define BITCOIN_WARNINGS_H +#include <optional> #include <string> +#include <vector> struct bilingual_str; void SetMiscWarning(const bilingual_str& warning); void SetfLargeWorkInvalidChainFound(bool flag); -/** Format a string that describes several potential problems detected by the core. - * @param[in] verbose bool - * - if true, get all warnings separated by <hr /> - * - if false, get the most important warning - * @returns the warning string - */ -bilingual_str GetWarnings(bool verbose); +/** Pass std::nullopt to disable the warning */ +void SetMedianTimeOffsetWarning(std::optional<bilingual_str> warning); +/** Return potential problems detected by the node. */ +std::vector<bilingual_str> GetWarnings(); #endif // BITCOIN_WARNINGS_H |