diff options
author | stickies-v <stickies-v@protonmail.com> | 2024-03-07 11:23:00 +0000 |
---|---|---|
committer | stickies-v <stickies-v@protonmail.com> | 2024-04-10 17:01:27 +0200 |
commit | ee178dfcc1175e0af8163216c9c024f4bfc97965 (patch) | |
tree | 29d04d09dcc21862dcaf6627986a68b38f1e31bc /src/warnings.h | |
parent | 55361a15d1aa6984051441bce88112000688fb43 (diff) | |
download | bitcoin-ee178dfcc1175e0af8163216c9c024f4bfc97965.tar.xz |
Add TimeOffsets helper class
This helper class is an alternative to CMedianFilter, but without a
lot of the special logic and exceptions that we needed while it was
still used for consensus.
Diffstat (limited to 'src/warnings.h')
-rw-r--r-- | src/warnings.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/warnings.h b/src/warnings.h index b21e2ea2b8..866bce6246 100644 --- a/src/warnings.h +++ b/src/warnings.h @@ -6,12 +6,15 @@ #ifndef BITCOIN_WARNINGS_H #define BITCOIN_WARNINGS_H +#include <optional> #include <string> struct bilingual_str; void SetMiscWarning(const bilingual_str& warning); void SetfLargeWorkInvalidChainFound(bool flag); +/** Pass std::nullopt to disable the warning */ +void SetMedianTimeOffsetWarning(std::optional<bilingual_str> warning); /** Format a string that describes several potential problems detected by the core. * @param[in] verbose bool * - if true, get all warnings separated by <hr /> |