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

Function AppInitLockDataDirectory

src/init.cpp:1173–1183  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1171}
1172
1173bool AppInitLockDataDirectory()
1174{
1175 // After daemonization get the data directory lock again and hold on to it until exit
1176 // This creates a slight window for a race condition to happen, however this condition is harmless: it
1177 // will at most make us exit without printing a message to console.
1178 if (!LockDataDirectory(false)) {
1179 // Detailed error printed inside LockDataDirectory
1180 return false;
1181 }
1182 return true;
1183}
1184
1185/* This function checks that the RPC connection to the parent chain node
1186 * can be attained, and is returning back reasonable answers.

Callers 2

AppInitFunction · 0.85
baseInitializeMethod · 0.85

Calls 1

LockDataDirectoryFunction · 0.85

Tested by

no test coverage detected