MCPcopy Create free account
hub / github.com/Bitcoin-ABC/bitcoin-abc / AppInitLockDataDirectory

Function AppInitLockDataDirectory

src/init.cpp:2159–2169  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2157}
2158
2159bool AppInitLockDataDirectory() {
2160 // After daemonization get the data directory lock again and hold on to it
2161 // until exit. This creates a slight window for a race condition to happen,
2162 // however this condition is harmless: it will at most make us exit without
2163 // printing a message to console.
2164 if (!LockDataDirectory(false)) {
2165 // Detailed error printed inside LockDataDirectory
2166 return false;
2167 }
2168 return true;
2169}
2170
2171bool AppInitInterfaces(NodeContext &node) {
2172 node.chain = interfaces::MakeChain(node, Params());

Callers 2

AppInitFunction · 0.85
baseInitializeMethod · 0.85

Calls 1

LockDataDirectoryFunction · 0.85

Tested by

no test coverage detected