diff options
author | Ryan Ofsky <ryan@ofsky.org> | 2022-06-07 21:08:56 -0400 |
---|---|---|
committer | Ryan Ofsky <ryan@ofsky.org> | 2022-07-19 16:54:52 -0400 |
commit | 6db6552377ad6316626b3ab8605a98f96f22c3d2 (patch) | |
tree | 02a4dbcf56b2daf1c1b8123944c4d337f1a7f8aa /src/kernel/checks.h | |
parent | b3e7de7ee6efb186efc272855ff1af5d9254b971 (diff) | |
download | bitcoin-6db6552377ad6316626b3ab8605a98f96f22c3d2.tar.xz |
refactor: Reduce number of SanityChecks return values
Diffstat (limited to 'src/kernel/checks.h')
-rw-r--r-- | src/kernel/checks.h | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/src/kernel/checks.h b/src/kernel/checks.h index 80b207f607..3eb14824fb 100644 --- a/src/kernel/checks.h +++ b/src/kernel/checks.h @@ -7,20 +7,16 @@ #include <optional> +struct bilingual_str; + namespace kernel { struct Context; -enum class SanityCheckError { - ERROR_ECC, - ERROR_RANDOM, - ERROR_CHRONO, -}; - /** * Ensure a usable environment with all necessary library support. */ -std::optional<SanityCheckError> SanityChecks(const Context&); +std::optional<bilingual_str> SanityChecks(const Context&); } |