Changeset View
Changeset View
Standalone View
Standalone View
src/init.cpp
Show First 20 Lines • Show All 1,849 Lines • ▼ Show 20 Lines | if (nMaxConnections < nUserMaxConnections) { | ||||
LogPrintf("Reducing -maxconnections from %d to %d, because of system " | LogPrintf("Reducing -maxconnections from %d to %d, because of system " | ||||
"limitations.\n", | "limitations.\n", | ||||
nUserMaxConnections, nMaxConnections); | nUserMaxConnections, nMaxConnections); | ||||
} | } | ||||
// Step 3: parameter-to-internal-flags | // Step 3: parameter-to-internal-flags | ||||
init::SetLoggingCategories(args); | init::SetLoggingCategories(args); | ||||
fCheckBlockIndex = args.GetBoolArg("-checkblockindex", | |||||
chainparams.DefaultConsistencyChecks()); | |||||
// Configure excessive block size. | // Configure excessive block size. | ||||
const int64_t nProposedExcessiveBlockSize = | const int64_t nProposedExcessiveBlockSize = | ||||
args.GetIntArg("-excessiveblocksize", DEFAULT_MAX_BLOCK_SIZE); | args.GetIntArg("-excessiveblocksize", DEFAULT_MAX_BLOCK_SIZE); | ||||
if (nProposedExcessiveBlockSize <= 0 || | if (nProposedExcessiveBlockSize <= 0 || | ||||
!config.SetMaxBlockSize(nProposedExcessiveBlockSize)) { | !config.SetMaxBlockSize(nProposedExcessiveBlockSize)) { | ||||
return InitError( | return InitError( | ||||
_("Excessive block size must be > 1,000,000 bytes (1MB)")); | _("Excessive block size must be > 1,000,000 bytes (1MB)")); | ||||
} | } | ||||
▲ Show 20 Lines • Show All 1,066 Lines • Show Last 20 Lines |