| 2157 | } |
| 2158 | |
| 2159 | bool 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 | |
| 2171 | bool AppInitInterfaces(NodeContext &node) { |
| 2172 | node.chain = interfaces::MakeChain(node, Params()); |
no test coverage detected