mirror of
https://github.com/bitcoin/bitcoin.git
synced 2026-01-20 07:09:15 +01:00
Move init::SanityCheck to kernel::SanityCheck
This commit is contained in:
@@ -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));
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user