Changeset View
Changeset View
Standalone View
Standalone View
src/init.cpp
Show First 20 Lines • Show All 2,992 Lines • ▼ Show 20 Lines | #endif | ||||
LogPrintf("nBestHeight = %d\n", chain_active_height); | LogPrintf("nBestHeight = %d\n", chain_active_height); | ||||
if (node.peerman) { | if (node.peerman) { | ||||
node.peerman->SetBestHeight(chain_active_height); | node.peerman->SetBestHeight(chain_active_height); | ||||
} | } | ||||
Discover(); | Discover(); | ||||
// Map ports with UPnP | // Map ports with UPnP | ||||
if (args.GetBoolArg("-upnp", DEFAULT_UPNP)) { | StartMapPort(args.GetBoolArg("-upnp", DEFAULT_UPNP)); | ||||
StartMapPort(); | |||||
} | |||||
CConnman::Options connOptions; | CConnman::Options connOptions; | ||||
connOptions.nLocalServices = nLocalServices; | connOptions.nLocalServices = nLocalServices; | ||||
connOptions.nMaxConnections = nMaxConnections; | connOptions.nMaxConnections = nMaxConnections; | ||||
connOptions.m_max_avalanche_outbound = std::min<int64_t>( | connOptions.m_max_avalanche_outbound = std::min<int64_t>( | ||||
g_avalanche && isAvalancheEnabled(args) | g_avalanche && isAvalancheEnabled(args) | ||||
? args.GetIntArg("-maxavalancheoutbound", | ? args.GetIntArg("-maxavalancheoutbound", | ||||
DEFAULT_MAX_AVALANCHE_OUTBOUND_CONNECTIONS) | DEFAULT_MAX_AVALANCHE_OUTBOUND_CONNECTIONS) | ||||
▲ Show 20 Lines • Show All 141 Lines • Show Last 20 Lines |