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.cpp | |
parent | fed085a1a4cd2787202752b6a0d98e42dce97f09 (diff) | |
download | bitcoin-265d6393bf9ef52e7ef7de97ca9c031da82a5ad1.tar.xz |
Move init::SanityCheck to kernel::SanityCheck
Diffstat (limited to 'src/init.cpp')
-rw-r--r-- | src/init.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/init.cpp b/src/init.cpp index aaabbd9af6..108f5c99d3 100644 --- a/src/init.cpp +++ b/src/init.cpp @@ -9,6 +9,8 @@ #include <init.h> +#include <kernel/checks.h> + #include <addrman.h> #include <banman.h> #include <blockfilter.h> @@ -1089,10 +1091,10 @@ static bool LockDataDirectory(bool probeOnly) return true; } -bool AppInitSanityChecks() +bool AppInitSanityChecks(const kernel::Context& kernel) { // ********************************************************* Step 4: sanity checks - if (!init::SanityChecks()) { + if (!kernel::SanityChecks(kernel)) { return InitError(strprintf(_("Initialization sanity check failed. %s is shutting down."), PACKAGE_NAME)); } |