Changeset View
Changeset View
Standalone View
Standalone View
src/init.cpp
Show First 20 Lines • Show All 2,145 Lines • ▼ Show 20 Lines | bool AppInitMain(Config &config, RPCServer &rpcServer, | ||||
} | } | ||||
LogPrintf("Using at most %i automatic connections (%i file descriptors " | LogPrintf("Using at most %i automatic connections (%i file descriptors " | ||||
"available)\n", | "available)\n", | ||||
nMaxConnections, nFD); | nMaxConnections, nFD); | ||||
// Warn about relative -datadir path. | // Warn about relative -datadir path. | ||||
if (args.IsArgSet("-datadir") && | if (args.IsArgSet("-datadir") && | ||||
!fs::PathFromString(args.GetArg("-datadir", "")).is_absolute()) { | !args.GetPathArg("-datadir").is_absolute()) { | ||||
LogPrintf("Warning: relative datadir option '%s' specified, which will " | LogPrintf("Warning: relative datadir option '%s' specified, which will " | ||||
"be interpreted relative to the current working directory " | "be interpreted relative to the current working directory " | ||||
"'%s'. This is fragile, because if bitcoin is started in the " | "'%s'. This is fragile, because if bitcoin is started in the " | ||||
"future from a different location, it will be unable to " | "future from a different location, it will be unable to " | ||||
"locate the current data files. There could also be data " | "locate the current data files. There could also be data " | ||||
"loss if bitcoin is started while in a temporary " | "loss if bitcoin is started while in a temporary " | ||||
"directory.\n", | "directory.\n", | ||||
args.GetArg("-datadir", ""), | args.GetArg("-datadir", ""), | ||||
▲ Show 20 Lines • Show All 828 Lines • Show Last 20 Lines |