MCPcopy Create free account
hub / github.com/ElementsProject/elements / AppInitSanityChecks

Function AppInitSanityChecks

src/init.cpp:1157–1171  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1155}
1156
1157bool AppInitSanityChecks()
1158{
1159 // ********************************************************* Step 4: sanity checks
1160
1161 init::SetGlobals();
1162
1163 if (!init::SanityChecks()) {
1164 return InitError(strprintf(_("Initialization sanity check failed. %s is shutting down."), PACKAGE_NAME));
1165 }
1166
1167 // Probe the data directory lock to give an early error message, if possible
1168 // We cannot hold the data directory lock here, as the forking for daemon() hasn't yet happened,
1169 // and a fork will cause weird behavior to it.
1170 return LockDataDirectory(true);
1171}
1172
1173bool AppInitLockDataDirectory()
1174{

Callers 2

AppInitFunction · 0.85
baseInitializeMethod · 0.85

Calls 5

SetGlobalsFunction · 0.85
SanityChecksFunction · 0.85
InitErrorFunction · 0.85
_Function · 0.85
LockDataDirectoryFunction · 0.85

Tested by

no test coverage detected