mirror of
https://github.com/ElementsProject/elements.git
synced 2026-08-14 12:43:40 +02:00
Move init::SanityCheck to kernel::SanityCheck
This commit is contained in:
parent
fed085a1a4
commit
265d6393bf
10 changed files with 68 additions and 30 deletions
|
|
@ -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));
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue