|
|
|
@ -1249,8 +1249,11 @@ bool AppInit2(boost::thread_group& threadGroup, CScheduler& scheduler)
@@ -1249,8 +1249,11 @@ bool AppInit2(boost::thread_group& threadGroup, CScheduler& scheduler)
|
|
|
|
|
RegisterValidationInterface(pzmqNotificationInterface); |
|
|
|
|
} |
|
|
|
|
#endif |
|
|
|
|
uint64_t nMaxOutboundLimit = 0; //unlimited unless -maxuploadtarget is set
|
|
|
|
|
uint64_t nMaxOutboundTimeframe = MAX_UPLOAD_TIMEFRAME; |
|
|
|
|
|
|
|
|
|
if (mapArgs.count("-maxuploadtarget")) { |
|
|
|
|
connman.SetMaxOutboundTarget(GetArg("-maxuploadtarget", DEFAULT_MAX_UPLOAD_TARGET)*1024*1024); |
|
|
|
|
nMaxOutboundLimit = GetArg("-maxuploadtarget", DEFAULT_MAX_UPLOAD_TARGET)*1024*1024; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
// ********************************************************* Step 7: load block chain
|
|
|
|
@ -1533,6 +1536,9 @@ bool AppInit2(boost::thread_group& threadGroup, CScheduler& scheduler)
@@ -1533,6 +1536,9 @@ bool AppInit2(boost::thread_group& threadGroup, CScheduler& scheduler)
|
|
|
|
|
connOptions.nSendBufferMaxSize = 1000*GetArg("-maxsendbuffer", DEFAULT_MAXSENDBUFFER); |
|
|
|
|
connOptions.nReceiveFloodSize = 1000*GetArg("-maxreceivebuffer", DEFAULT_MAXRECEIVEBUFFER); |
|
|
|
|
|
|
|
|
|
connOptions.nMaxOutboundTimeframe = nMaxOutboundTimeframe; |
|
|
|
|
connOptions.nMaxOutboundLimit = nMaxOutboundLimit; |
|
|
|
|
|
|
|
|
|
if(!connman.Start(threadGroup, scheduler, strNodeError, connOptions)) |
|
|
|
|
return InitError(strNodeError); |
|
|
|
|
|
|
|
|
|