diff options
author | Carl Dong <contact@carldong.me> | 2022-05-27 16:47:05 -0400 |
---|---|---|
committer | Carl Dong <contact@carldong.me> | 2022-06-02 11:42:12 -0400 |
commit | 265d6393bf9ef52e7ef7de97ca9c031da82a5ad1 (patch) | |
tree | 5fd6e341d903e3b78c7ad25c090d08fbcf9a6034 /src/init | |
parent | fed085a1a4cd2787202752b6a0d98e42dce97f09 (diff) |
Move init::SanityCheck to kernel::SanityCheck
Diffstat (limited to 'src/init')
-rw-r--r-- | src/init/common.cpp | 19 | ||||
-rw-r--r-- | src/init/common.h | 5 |
2 files changed, 0 insertions, 24 deletions
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 <clientversion.h> #include <fs.h> -#include <key.h> #include <logging.h> #include <node/ui_interface.h> -#include <random.h> #include <tinyformat.h> #include <util/system.h> #include <util/time.h> @@ -22,23 +20,6 @@ #include <vector> 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=<file>", 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); diff --git a/src/init/common.h b/src/init/common.h index bbd5771840..2c7f485908 100644 --- a/src/init/common.h +++ b/src/init/common.h @@ -11,11 +11,6 @@ class ArgsManager; namespace init { -/** - * Ensure a usable environment with all - * necessary library support. - */ -bool SanityChecks(); void AddLoggingArgs(ArgsManager& args); void SetLoggingOptions(const ArgsManager& args); void SetLoggingCategories(const ArgsManager& args); |