|
|
@ -1522,6 +1522,8 @@ bool AppInit2(boost::thread_group& threadGroup, CScheduler& scheduler) |
|
|
|
connOptions.nMaxOutbound = std::min(MAX_OUTBOUND_CONNECTIONS, connOptions.nMaxConnections); |
|
|
|
connOptions.nMaxOutbound = std::min(MAX_OUTBOUND_CONNECTIONS, connOptions.nMaxConnections); |
|
|
|
connOptions.nBestHeight = chainActive.Height(); |
|
|
|
connOptions.nBestHeight = chainActive.Height(); |
|
|
|
connOptions.uiInterface = &uiInterface; |
|
|
|
connOptions.uiInterface = &uiInterface; |
|
|
|
|
|
|
|
connOptions.nSendBufferMaxSize = 1000*GetArg("-maxsendbuffer", DEFAULT_MAXSENDBUFFER); |
|
|
|
|
|
|
|
connOptions.nReceiveFloodSize = 1000*GetArg("-maxreceivebuffer", DEFAULT_MAXRECEIVEBUFFER); |
|
|
|
|
|
|
|
|
|
|
|
if(!connman.Start(threadGroup, scheduler, strNodeError, connOptions)) |
|
|
|
if(!connman.Start(threadGroup, scheduler, strNodeError, connOptions)) |
|
|
|
return InitError(strNodeError); |
|
|
|
return InitError(strNodeError); |
|
|
|