From 265d6393bf9ef52e7ef7de97ca9c031da82a5ad1 Mon Sep 17 00:00:00 2001 From: Carl Dong Date: Fri, 27 May 2022 16:47:05 -0400 Subject: Move init::SanityCheck to kernel::SanityCheck --- src/init/common.cpp | 19 ------------------- 1 file changed, 19 deletions(-) (limited to 'src/init/common.cpp') diff --git a/src/init/common.cpp b/src/init/common.cpp index e5dc097bc3..d4e45454d2 100644 --- a/src/init/common.cpp +++ b/src/init/common.cpp @@ -8,10 +8,8 @@ #include #include -#include #include #include -#include #include #include #include @@ -22,23 +20,6 @@ #include namespace init { -bool SanityChecks() -{ - if (!ECC_InitSanityCheck()) { - return InitError(Untranslated("Elliptic curve cryptography sanity check failure. Aborting.")); - } - - if (!Random_SanityCheck()) { - return InitError(Untranslated("OS cryptographic RNG sanity check failure. Aborting.")); - } - - if (!ChronoSanityCheck()) { - return InitError(Untranslated("Clock epoch mismatch. Aborting.")); - } - - return true; -} - void AddLoggingArgs(ArgsManager& argsman) { argsman.AddArg("-debuglogfile=", strprintf("Specify location of debug log file. Relative paths will be prefixed by a net-specific datadir location. (-nodebuglogfile to disable; default: %s)", DEFAULT_DEBUGLOGFILE), ArgsManager::ALLOW_ANY, OptionsCategory::OPTIONS); -- cgit v1.2.3